Commit b270445b8fefa837f69da2dabe650b2ea2fe19b3
1 parent
f7f95504
14.06.16
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
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 |