Commit b270445b8fefa837f69da2dabe650b2ea2fe19b3

Authored by Administrator
1 parent f7f95504

14.06.16

frontend/config/main.php
@@ -79,7 +79,6 @@ return [ @@ -79,7 +79,6 @@ return [
79 ], 79 ],
80 'priceparam.xml' => 'site/priceparam', 80 'priceparam.xml' => 'site/priceparam',
81 'price.xml' => 'site/price', 81 'price.xml' => 'site/price',
82 - // 'robots.txt' => 'site/robots',  
83 'smstest' => 'site/sms', 82 'smstest' => 'site/sms',
84 // 'catalog' => 'catalog/all', 83 // 'catalog' => 'catalog/all',
85 // 'catalog/<translit:\w+>' => 'catalog/index', 84 // 'catalog/<translit:\w+>' => 'catalog/index',
frontend/controllers/TextController.php
@@ -12,7 +12,7 @@ class TextController extends Controller @@ -12,7 +12,7 @@ class TextController extends Controller
12 12
13 public function actionIndex() 13 public function actionIndex()
14 { 14 {
15 - 15 +
16 if(!$modelText = Page::find()->where(['translit'=>$_GET['translit']])->one()) 16 if(!$modelText = Page::find()->where(['translit'=>$_GET['translit']])->one())
17 throw new HttpException(404, 'Данной странице не существует!'); 17 throw new HttpException(404, 'Данной странице не существует!');
18 18