コード例 #1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Director('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Director'])) {
         $model->attributes = $_GET['Director'];
     }
     $this->render('admin', array('model' => $model));
 }