Example #1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Photos('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Photos'])) {
         $model->attributes = $_GET['Photos'];
     }
     $this->render('admin', array('model' => $model));
 }