public function initialize() { Tag::setTitle('About'); parent::initialize(); $this->_bc->add('About', 'about'); $this->view->setVar('menus', $this->constructMenu($this)); }
/** * Initializes the controller */ public function initialize() { Tag::setTitle('Manage Awards'); parent::initialize(); $this->_bc->add('Awards', 'awards'); $auth = $this->session->get('auth'); $add = ''; if ($auth) { $add = Tag::linkTo(array('awards/add', 'Add Award')); } $this->view->setVar('addButton', $add); $this->view->setVar('menus', $this->constructMenu($this)); }
/** * Initializes the controller */ public function initialize() { Tag::setTitle('Log In'); parent::initialize(); $this->view->setVar('menus', $this->constructMenu($this)); }