/** * Manages all models. */ public function actionAdmin() { $model = new Accounts('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Accounts'])) { $model->attributes = $_GET['Accounts']; } $this->render('admin', array('model' => $model)); }
public function actionAdmin() { $model = new Accounts('search'); $model->unsetAttributes(); if (isset($_GET['Accounts'])) { $model->attributes = $_GET['Accounts']; } if (Yii::app()->request->isAjaxRequest) { $this->renderPartial('admin', array('model' => $model), false, true); Yii::app()->end(); } $this->render('admin', array('model' => $model)); }
public function actionOwe() { $model = new Accounts('search'); $model->unsetAttributes(); $model->type = 0; //could be dynamic $this->render('owe', array('model' => $model)); }