public function __construct(View $view, $settings = array()) { parent::__construct($view, $settings); if (!isset($this->params['admin']) && !$this->request->is('ajax')) { $this->Html->css('/megamenu/css/menu', array('inline' => false)); } }
public function __construct(View $view, $settings = array()) { parent::__construct($view); $this->_setupEvents(); $this->Site = ClassRegistry::init('Sites.Site'); }