public function actionIndex() { $model = new PayrollSalary('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['PayrollSalary'])) { $model->attributes = $_GET['PayrollSalary']; } $this->render('index', array('model' => $model, 'employee' => MastersEmployees::model()->findByPk(getUser()->id))); }
/** * Manages all models. */ public function actionIndex() { $model = new PayrollSalary('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['PayrollSalary'])) { $model->attributes = $_GET['PayrollSalary']; } $this->render('index', array('model' => $model)); }