/** * Manages all models. */ public function actionIndex() { $model = new AllowedIp('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['AllowedIp'])) { $model->attributes = $_GET['AllowedIp']; } $this->render('index', array('model' => $model)); }
public function actionIndex() { $waktu = new WaktuAplikasi(); $daftarWaktu = new WaktuAplikasi('search'); $daftarWaktu->unsetAttributes(); $ipAddress = new AllowedIp(); $daftarIp = new AllowedIp('search'); $daftarIp->unsetAttributes(); $this->render('index', array('waktu' => $waktu, 'daftarWaktu' => $daftarWaktu, 'ipAddress' => $ipAddress, 'daftarIp' => $daftarIp)); }