Commit 3b376a55bd7b341573a30ee18f3f772df6a7717e
1 parent
30616883
123
Showing
2 changed files
with
18 additions
and
9 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
| @@ -234,14 +234,7 @@ class PageController extends \controllers\ControllerBase | @@ -234,14 +234,7 @@ class PageController extends \controllers\ControllerBase | ||
| 234 | 'action' => 'error404' | 234 | 'action' => 'error404' |
| 235 | ]); | 235 | ]); |
| 236 | } | 236 | } |
| 237 | - | ||
| 238 | - | ||
| 239 | - if($type==='pro_companiu') | ||
| 240 | - $this->view->setMainView('about_ukr'); | ||
| 241 | - if($type==='o-kompanii') | ||
| 242 | - $this->view->setMainView('about_ukr'); | ||
| 243 | - elseif($type==='pro_companiu_en') | ||
| 244 | - $this->view->setMainView('about_eng'); | 237 | + |
| 245 | } | 238 | } |
| 246 | 239 | ||
| 247 | 240 | ||
| @@ -1420,7 +1413,10 @@ class PageController extends \controllers\ControllerBase | @@ -1420,7 +1413,10 @@ class PageController extends \controllers\ControllerBase | ||
| 1420 | die(); | 1413 | die(); |
| 1421 | } | 1414 | } |
| 1422 | 1415 | ||
| 1423 | - | 1416 | + public function aboutuaAction($type){ |
| 1417 | + $this->view->setMainView('about_ukr'); | ||
| 1418 | + } | ||
| 1419 | + | ||
| 1424 | public function compareItemsAction( $url, $subtype, $compare_ids) | 1420 | public function compareItemsAction( $url, $subtype, $compare_ids) |
| 1425 | { | 1421 | { |
| 1426 | $params = $this->dispatcher->getParams(); | 1422 | $params = $this->dispatcher->getParams(); |
www/index.php
| @@ -1744,6 +1744,19 @@ try | @@ -1744,6 +1744,19 @@ try | ||
| 1744 | ] | 1744 | ] |
| 1745 | ) | 1745 | ) |
| 1746 | ->setName( 'faq' ); | 1746 | ->setName( 'faq' ); |
| 1747 | + | ||
| 1748 | + | ||
| 1749 | + $router->add | ||
| 1750 | + ( | ||
| 1751 | + '/about{language:([/][a-z]{2})?}', | ||
| 1752 | + [ | ||
| 1753 | + 'controller' => 'page', | ||
| 1754 | + 'action' => 'aboutua', | ||
| 1755 | + ] | ||
| 1756 | + ) | ||
| 1757 | + ->setName( 'aboutua' ); | ||
| 1758 | + | ||
| 1759 | + | ||
| 1747 | 1760 | ||
| 1748 | return $router; | 1761 | return $router; |
| 1749 | }, true ); | 1762 | }, true ); |