public function __construct()
 {
     parent::__construct();
     $this->instagram_instance();
     $this->mediaModel = new Model_Media($this->dbh);
     $this->userModel = new Model_User($this->dbh);
 }
Esempio n. 2
0
 protected function beforeAction($action)
 {
     if ($this->filter($action->id)) {
         return true;
     }
     if (!$this->isLogin()) {
         $this->redirect($this->createUrl('login'));
     }
     $this->uid = Yii::app()->session['uid'];
     return parent::beforeAction($action);
 }
 function __construct()
 {
     parent::__construct();
     $this->validate();
     $this->model = new Models\Model_Dashboard();
 }