Category::getCategories( (int)($cookie->id_lang), true, false);
public function initContent() { parent::initContent(); $this->context->smarty->assign(array( 'HOOK_HOME' => Hook::exec('displayHome'), )); $this->setTemplate('index'); }
class IndexControllerCore extends FrontController{ public $php_self = 'index'; /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $category = Category::getCategories( (int)($cookie->id_lang), true, false); $this->context->smarty->assign(array( 'HOOK_HOME' => Hook::exec('displayHome'), 'cat' => $category, )); $this->setTemplate('index'); }}
$this->context->cookie->variable;
$cookie->variable;