protected function _init() { parent::_init(); $this->aclAdd('login', array('restricted', 'accounts')); $this->Facebook = new FacebookConnect(FACEBOOK_APP_ID, FACEBOOK_APP_SECRET, array('redirect_uri' => FACEBOOK_REDIRECT_URI)); $this->tpl->assign('Facebook', $this->Facebook); $this->tpl->assign('users', User::all()); }
protected function _init() { parent::_init(); // log page into user history (why? because we can!) // $this->user->history($this->uri); $this->aclAdd('true'); // adds required zone "true" to all Actions of this Controller, just to trigger Controller ACL $this->aclAdd('logged in', array('add_post', 'edit_post', 'edit_comment', 'publish_post', 'unpublish_post', 'follow_post')); $this->aclAdd('blog create posts', 'add_post'); }
protected function _init() { parent::_init(); $this->tpl->viewLayout = '_todoLayout'; }
protected function _init() { parent::_init(); $this->aclAdd('logged in', 'viewAction'); // doesn't work? }