Ejemplo n.º 1
0
 public function actionIndex()
 {
     if (App::instance()->isGuest()) {
         $this->redirect('/user/login/');
     }
     $gallery = Image::findAllByProp('uid', App::instance()->getUser()->getId());
     $this->render('gallery', ['gallery' => $gallery]);
 }