Esempio n. 1
0
 public function actionSearch()
 {
     $ModalSeo = new CmsvideoSettings();
     $DataSeo = $ModalSeo->DownloadSettings();
     foreach ($DataSeo as $Seoo) {
         $this->pageMetaRobots = $Seoo['settings_robots'];
     }
     $model = new CmsvideoVideo('search_model');
     $model->unsetAttributes();
     if (isset($_GET['search_key'])) {
         if (!$_GET['search_key'] == '') {
             $model->video_title = $_GET['search_key'];
             $model->video_text = $_GET['search_key'];
             // $dataProvider= $model->search();
         } else {
             echo 'podano puste wartości!';
             $this->redirect(array('/'));
         }
     }
     $this->render('search', array('model' => $model));
 }