/** * function is run before action function * @override */ public function actionPre() { /* call parent actionPre function */ parent::actionPre(); /* check for new twitter updates */ $this->_checkForTwitterUpdates(); }
protected function getControllerSession() { if (!class_exists('ControllerSession')) { require_once CORE_ROOT . CONTROLLERS . DIRECTORY_SEPARATOR . 'ControllerSession.php'; } if (!is_object($this->session)) { $this->session = ControllerSession::getInstance(); } }