getVar( "get" ); //$page->parseLanguagePage($page->lang["header"]); /************************************************************ * Operating with model files ************************************************************/ $page->parseCategoriesAndProducts(); $contents = $page->getClassOf("contentItems"); if (isset($page->cat_id)) { $cat = $page->cats->getCategoryById(@$page->cat_id); if ($cat["parent_id"] != 0) { $page->tpl->assign("items", $contents->getContentItemsOfCategory(@$page->cat_id)); $page->tpl->assign("category", $cat); } } /************************************************************ * Rendering ************************************************************/ $page->tpl->assign("page", "category_content"); $page->tpl->display( "index.tpl.html" ); ?>