Esempio n. 1
0
 public function actionIndex()
 {
     $model = new Slide('search');
     $model->unsetAttributes();
     if (isset($_GET['Slide'])) {
         $model->attributes = $_GET['Slide'];
     }
     $this->render('index', array('model' => $model));
 }
Esempio n. 2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     if ($this->menu_use[13]) {
         $model = new Slide('search');
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['Slide'])) {
             $model->attributes = $_GET['Slide'];
         }
         $this->render('admin', array('model' => $model));
     } else {
         $this->redirect(array('site/index'));
     }
 }
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Slide('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Slide'])) {
         $model->attributes = $_GET['Slide'];
     }
     $this->render('admin', array('model' => $model));
 }