public function actionAdmin() { $model = new SupportTicket('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['SupportTicket'])) { $model->attributes = $_GET['SupportTicket']; } $this->render('admin', array('model' => $model)); }
public function actionSupports() { $model = new SupportTicket('search'); $model->unsetAttributes(); // clear any default values $model->customer_id = Yii::app()->user->customerId; if (isset($_GET['Support'])) { $model->attributes = $_GET['Support']; } $this->render('list_supports', array('model' => $model)); }