public function __construct()
 {
     parent::__construct();
     $this->instagram_instance();
     $this->mediaModel = new Model_Media($this->dbh);
     $this->userModel = new Model_User($this->dbh);
 }
Ejemplo 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);
 }
Ejemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
     $this->validate();
     $this->model = new Models\Model_Dashboard();
 }