1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<?php
class Default_Bootstrap extends Zend_Application_Module_Bootstrap
{
public function _initRoutes()
{
$frontController = Zend_Controller_Front::getInstance();
$router = $frontController->getRouter();
$route = new Zend_Controller_Router_Route_Static (
'login',
array('controller' => 'inscription',
'action' => 'etape1',
'module' => 'default',)
);
$router->addRoute('login', $route);
$routereg = new Zend_Controller_Router_Route_Regex(
'ficheriad/detail/(\d+)-(.+)\.html',
array(
'controller' => 'ficheriad',
'action' => 'detail',
'module' => 'default',
),
array(
1 => 'iEtablissementId',
2 => 'description'
),
'ficheriad/detail/%d-%s.html'
);
$router->addRoute('ficheRiad', $routereg);
}
}
?> |
Partager