Ejemplo n.º 1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     Yii::app()->bootstrap->registerJS();
     Yii::app()->bootstrap->registerJSBackend();
     $model = new Slideshow('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Slideshow'])) {
         $model->attributes = $_GET['Slideshow'];
     }
     $this->render('admin', array('model' => $model));
 }
Ejemplo n.º 2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Slideshow('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Slideshow'])) {
         $model->attributes = $_GET['Slideshow'];
     }
     $this->render('admin', array('model' => $model));
 }