public function actionSearchEngine($keyword)
 {
     //echo "THIS IS IAJAXX  ".$keyword;
     $model = new Items();
     $model->unsetAttributes();
     // clear any default values
     $results = $model->freeSearch($keyword);
     $this->renderPartial('_ajax_search', array('results' => $results));
 }
Exemplo n.º 2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Items('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Items'])) {
         $model->attributes = $_GET['Items'];
     }
     $this->render('admin', array('model' => $model));
 }