...
Code Block |
---|
/* * With this override, you have a new Smarty variable called "currentController" available in header.tpl * This allows you to use a different header if you are on a product page, category page or home. */ class FrontController extends FrontControllerCore { public function displayHeaderinitHeader() { self::$smarty->assign('currentController', get_class($this)); return parent::displayHeaderinitHeader(); } } |