Ejemplo n.º 1
0
 public function actionAdmin()
 {
     $model = new Store('search');
     $model->unsetAttributes();
     if (isset($_GET['Store'])) {
         $model->setAttributes($_GET['Store']);
     }
     $this->render('admin', array('model' => $model));
 }
Ejemplo n.º 2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Store('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Store'])) {
         $model->attributes = $_GET['Store'];
     }
     $this->render('admin', array('model' => $model));
 }
Ejemplo n.º 3
0
 public function actionIndex()
 {
     $this->pageTitle = "Store Management";
     $model = new Store('search');
     $model->unsetAttributes();
     if (isset($_GET['Store'])) {
         $model->attributes = $_GET['Store'];
     }
     $this->render($this->view . 'index', array('model' => $model));
 }
Ejemplo n.º 4
0
 public function actionView()
 {
     $model = new Store('search');
     $model->unsetAttributes();
     $names = Store::model()->getName();
     if ($_GET['Store']) {
         $model->attributes = $_GET['Store'];
     }
     $this->render('view', ['model' => $model, 'names' => $names]);
 }