/** * beforeFilter * * @return void */ public function beforeFilter() { parent::beforeFilter(); $blockId = Current::read('Block.id'); $this->_cabinet = $this->Cabinet->findByBlockId($blockId); $this->set('cabinet', $this->_cabinet); }
/** * beforeFilter * * @return void */ public function beforeFilter() { // ゲストアクセスOKのアクションを設定 $this->Auth->allow('index', 'view', 'folder_detail', 'download', 'download_folder'); parent::beforeFilter(); $blockId = Current::read('Block.id'); $this->_cabinet = $this->Cabinet->findByBlockId($blockId); $this->set('cabinet', $this->_cabinet); }