Exemple #1
0
 public function actionIndex()
 {
     //$page = Pages::find()->where(['id' => $_GET['p']])->one();
     $cat = \backend\modules\category\models\Category::find()->where(['id' => $_GET['c']])->one();
     //$content = $this->getBlocks($cat);
     //$con = $this->render('index', ['content' => $content, 'page' => $cat]);
     Template::get_header($cat);
     $this->getBlocks($cat);
     Template::get_footer();
 }
Exemple #2
0
 public function actionIndex()
 {
     //$page = Pages::find()->where(['id' => $_GET['p']])->one();
     $page = Pages::find()->where(['id' => $_GET['p']])->one();
     //$content = $this->getBlocks($page);
     //$content = $this->getBlocks($page);
     //$con = $this->render('index', ['content' => $content, 'page' => $page]);
     Template::get_header($page);
     $this->getBlocks($page);
     Template::get_footer();
 }
Exemple #3
0
 public function actionIndex()
 {
     $options = Options::find()->where(['key' => 'mainpage'])->one();
     $pageId = $options->value;
     $page = Pages::find()->where(['id' => $pageId])->one();
     //$content = $this->getBlocks($page);
     //$con = $this->render('index', ['content' => $content, 'page' => $page]);
     Template::get_header($page);
     $this->getBlocks($page);
     Template::get_footer();
 }