/** * Lists all models. */ public function actionIndex() { LoginForm::checkLogin(); $this->pageTitle = "NTP Laboratory Requests"; $model = new NtpLaboratoryRequest('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['NtpLaboratoryRequest'])) { $model->attributes = $_GET['NtpLaboratoryRequest']; if (isset($_GET['NtpLaboratoryRequest']['patient_family_name'])) { $model->patient_family_name = $_GET['NtpLaboratoryRequest']['patient_family_name']; } } $this->render('index', array('model' => $model)); }