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("category", $cat); } } if (isset($page->prod_id)) { $prod = $page->prods->getProductById(@$page->prod_id); $page->tpl->assign("product", $prod); $page->tpl->assign("items", $contents->getContentItemsOfProduct(@$page->prod_id)); } $page->tpl->assign( "files1", $page->files->getFilesOfGroup(@$page->prod_id, "Price") ); $page->tpl->assign( "files2", $page->files->getFilesOfGroup(@$page->prod_id, "Specs") ); /************************************************************ * Rendering ************************************************************/ $page->tpl->assign("page", "products_content"); $page->tpl->display( "products.tpl.html" ); ?>