public function actionDetailedSearch()
 {
     //renders the view 'detailedSearch' and passes the model
     $this->pageDescriptionMetaTag = 'Detailierte Wörtersuche nach Nominalklassen, Wortarten, Themen etc.';
     $model = new wortschatz('search');
     //db columns with default value are set to NULL:
     $model->setAttributes(array('grundwortschatz' => NULL, 'noun_animate' => NULL, 'verb_monosyllabic' => NULL));
     //andere Möglichkeit dafür wäre:
     //                $model->grundwortschatz = NULL;
     //                $model->noun_animate = NULL;
     //                $model->verb_monosyllabic = NULL;
     if (isset($_GET['wortschatz'])) {
         $model->attributes = $_GET['wortschatz'];
     }
     $this->render('detailedSearch', array('model' => $model));
 }
 /**
  * Manages all models.
  */
 public function actionAdminDetailedSearch()
 {
     $model = new wortschatz('search');
     //db columns with default value are set to NULL:
     $model->setAttributes(array('grundwortschatz' => NULL, 'noun_animate' => NULL, 'verb_monosyllabic' => NULL));
     if (isset($_GET['wortschatz'])) {
         $model->attributes = $_GET['wortschatz'];
     }
     $this->render('adminDetailedSearch', array('model' => $model));
 }