/** * beforeFilter Method */ public function beforeFilter(Event $event) { parent::beforeFilter($event); $this->Auth->allow(['index']); }
/** * Initialization hook method. * * Use this method to add common initialization code like loading components. * * e.g. `$this->loadComponent('Security');` * * @return void */ public function initialize() { parent::initialize(); $this->loadComponent('Address.Address'); }