Example #1
0
 public function actionAdmin()
 {
     $model = new Song('search');
     $model->unsetAttributes();
     if (isset($_GET['Song'])) {
         $model->setAttributes($_GET['Song']);
     }
     $this->render('admin', array('model' => $model));
 }