Beispiel #1
0
 public function actionGroup($id)
 {
     $list = explode(",", $id);
     $model = new Bb('search');
     $this->pageTit = $this->maketit($id);
     $ffmodel = new FindForm();
     if (isset($_POST['FindForm'])) {
         $ffmodel->attributes = $_POST['FindForm'];
         if ($bb = $ffmodel->valid()) {
             if (!is_null($bb)) {
                 header("Location:" . Yii::app()->request->baseUrl . "/index.php?r=bb/views&id=" . $bb[0] . "&side=" . $bb[1]);
                 //					Yii::app()->runController('/bb/views/id/'.$bb->id.'/side/1');
                 //					$this->render('end',array('model'=>$bb));/**/
                 return;
             }
         }
     }
     $this->render('viewb', array('model' => $model, 'list' => $list, 'fmodel' => $ffmodel));
 }
Beispiel #2
0
 public function actionMap()
 {
     $model = new Regions('search');
     $model->unsetAttributes();
     // clear any default values
     $dataProvider = new CActiveDataProvider('Regions');
     $cfmodel = new FindForm();
     if (isset($_POST['FindForm'])) {
         $cfmodel->attributes = $_POST['FindForm'];
         if ($bb = $cfmodel->valid()) {
             if (!is_null($bb)) {
                 header("Location:" . Yii::app()->request->baseUrl . "/index.php?r=bb/views&id=" . $bb[0] . "&side=" . $bb[1]);
                 return;
             }
         }
     }
     $this->render('map', array('dataProvider' => $dataProvider, 'model' => $model, 'fmodel' => $cfmodel));
 }