BFC
This commit is contained in:
parent
d648d58628
commit
359e42a44b
19 changed files with 260 additions and 28 deletions
|
|
@ -105,8 +105,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
|
||||
$router = $this->getResource('front')->getRouter();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$router->addRoute('default', new Zend_Controller_Router_Route(':lang/:controller/:action',
|
||||
array(
|
||||
|
|
@ -117,6 +116,8 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
)
|
||||
));
|
||||
|
||||
|
||||
|
||||
$router->addRoute('index', new Zend_Controller_Router_Route(
|
||||
':lang/:action',
|
||||
array(
|
||||
|
|
@ -128,12 +129,13 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
));
|
||||
|
||||
$router->addRoute('blog', new Zend_Controller_Router_Route(
|
||||
':lang/blog/:action',
|
||||
':lang/blog/:action/:id',
|
||||
array(
|
||||
'lang' => 'sv',
|
||||
'module' => 'blog',
|
||||
'controller' => 'index',
|
||||
'action' => 'latest'
|
||||
'action' => 'latest',
|
||||
'id' => ''
|
||||
)
|
||||
));
|
||||
|
||||
|
|
@ -157,6 +159,20 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
)
|
||||
));
|
||||
|
||||
|
||||
$router->addRoute('auth', new Zend_Controller_Router_Route(
|
||||
':lang/:action',
|
||||
array(
|
||||
'lang' => 'sv',
|
||||
'module' => 'default',
|
||||
'controller' => 'auth',
|
||||
),
|
||||
array(
|
||||
'action' => '(login|logout)'
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
|
||||
return $router;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue