📜  prestashop 类别作为主页 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:22.433000             🧑  作者: Mango

代码示例2
/* Quick and dirty
 * in file Controllers/IndexController.php
 */
public function initContent() {
   parent::initContent();
   Tools::redirect('index.php?id_category=10&controller=category');
   $this->context->smarty->assign('HOOK_HOME', Hook::exec('displayHome'));
   $this->setTemplate(_PS_THEME_DIR_.'index.tpl');
}