context->link->getCategoryCmsLink($this->categorycms->id)); } public function init() { $id_category_cms = Tools::getValue('id_category_cms', 0); $this->categorycms = new CmsPsCategory($id_category_cms, $this->context->language->id); if (!Validate::isLoadedObject($this->categorycms)) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } parent::init(); } public function initContent() { parent::initContent(); $this->context->smarty->assign(array( 'path' => Tools::getPath($this->categorycms->id, '', FALSE, 'categoriescms'), 'categorycms' => $this->categorycms )); $this->setTemplate(_PS_THEME_DIR_.'categorycms.tpl'); } }