Child pages
  • Overriding default behaviors

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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();
	}
}