コード例 #1
0
ファイル: AdminController.php プロジェクト: kksshp/cms
 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));
 }
コード例 #2
0
 /**
  * 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));
 }