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