/** * Manages all models. */ public function actionAdmin() { $model = new Activity('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Activity'])) { $model->attributes = $_GET['Activity']; } $this->render('admin', array('model' => $model)); }
public function actionActivity() { $model = new Activity('search'); $model->with('users'); $model->unsetAttributes(); if (isset($_GET['Activity'])) { $model->attributes = $_GET['Activity']; } $this->render('activity', array('model' => $model)); }
/** * Lists all models. */ public function actionIndex() { $this->title = 'Daftar Kegiatan'; $model = new Activity('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Activity'])) { $model->attributes = $_GET['Activity']; } $this->render('index', array('model' => $model)); }