/** Call before all controller actions */ public function init() { $this->_view->set('title', 'phpDays projects'); // set variables for current environment $this->_projectName = Days_Url::get('project', null); $this->_bugId = Days_Url::get(1, null); $this->_taskId = Days_Url::get(1, null); $this->_codePath = Days_Url::get(1, null); $this->_wikiPage = Days_Url::get(1, null); }