public function actionAdmin() { $model = new Store('search'); $model->unsetAttributes(); if (isset($_GET['Store'])) { $model->setAttributes($_GET['Store']); } $this->render('admin', array('model' => $model)); }
/** * 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)); }
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)); }
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]); }