diff --git a/frontend/controllers/TextController.php b/frontend/controllers/TextController.php new file mode 100755 index 0000000..34e83bf --- /dev/null +++ b/frontend/controllers/TextController.php @@ -0,0 +1,24 @@ +where(['translit'=>$_GET['translit']])->one()) + throw new HttpException(404, 'Данной странице не существует!'); + + return $this->render('index', [ + 'text'=>$modelText, + ]); + } + +} \ No newline at end of file diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index d8cd701..74459b2 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -91,12 +91,11 @@ use frontend\widgets\Seo; -
  • -
  • -
  • -
  • -
  • -
  • +
  • 'magaziny'])) ?>
  • +
  • 'oplata-i-dostavka'])) ?>
  • +
  • 'garantii'])) ?>
  • +
  • 'oplata'])) ?>
  • +
  • 'dostavka-tovarov'])) ?>
  • diff --git a/frontend/views/text/index.php b/frontend/views/text/index.php new file mode 100755 index 0000000..2774070 --- /dev/null +++ b/frontend/views/text/index.php @@ -0,0 +1,16 @@ + +title = $text->meta_title; +$this->registerMetaTag(['name' => 'description', 'content' => $text->meta_description]); +$this->registerMetaTag(['name' => 'keywords', 'content' => $text->meta_keywords]); +?> + +
    + +
    +

    title;?>

    +body;?> +
    +
    \ No newline at end of file -- libgit2 0.21.4