Esempio n. 1
0
 /**
  * function is run before action function
  * @override
  */
 public function actionPre()
 {
     /* call parent actionPre function */
     parent::actionPre();
     /* check for new twitter updates */
     $this->_checkForTwitterUpdates();
 }
Esempio n. 2
0
 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();
     }
 }