示例#1
0
 public function actionBlocks()
 {
     $model = new CmsNode('search');
     $cms = new CmsContent();
     $model->unsetAttributes();
     // clear any default values
     //echo "<pre>"; print_r($_GET);die;
     if (isset($_GET['CmsNode'])) {
         $model->attributes = $_GET['CmsNode'];
     }
     $this->render('blocks', array('model' => $model, 'cms' => $cms));
 }
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new CmsNode('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['CmsNode'])) {
         $model->attributes = $_GET['CmsNode'];
     }
     $this->render('admin', array('model' => $model));
 }