public function beforeFilter(\Cake\Event\Event $event) { parent::beforeFilter($event); $this->loadMainNavigation(); }
/** * Pass this call through to CrudView plugin */ public function beforeFilter(Event $event) { parent::beforeFilter($event); Router::parseNamedParams($this->request); // $this->Auth->allow(['index', 'view', 'display', 'edit']); }