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; -
- - - - - +