Пример #1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Ingredient('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Ingredient'])) {
         $model->attributes = $_GET['Ingredient'];
     }
     $this->render('admin', array('model' => $model));
 }