/** * Управление Расписаниями. * * @return void */ public function actionIndex() { $model = new Schedule('search'); $model->unsetAttributes(); // clear any default values if (Yii::app()->getRequest()->getParam('Schedule') !== null) { $model->setAttributes(Yii::app()->getRequest()->getParam('Schedule')); } $this->render('index', ['model' => $model]); }
public function actionAdmin() { $model = new Schedule('search'); $model->unsetAttributes(); if (isset($_GET['Schedule'])) { $model->attributes = $_GET['Schedule']; } $this->render('admin', array('model' => $model)); }