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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
| /**
* Here, we are connecting '/' (base path) to controller called 'Pages',
* its action called 'display', and we pass a param to select the view file
* to use (in this case, /app/views/pages/home.ctp)...
*/
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
/**
* ...and connect the rest of 'Pages' controller's urls.
*/
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
Router::connect( '/admin', array('controller' => 'users', 'action' => 'home', 'prefix' => 'admin'));
Router::parseExtensions('rss');
//Url rewriting pour les membres
Router::connect(
'/secretariat-federal',
array('controller' => 'membres', 'action' => 'secretariatlist'));
Router::connect(
'/bureau-federal',
array('controller' => 'membres', 'action' => 'bureaulist'));
Router::connect(
'/conseil-federal',
array('controller' => 'membres', 'action' => 'conseillist'));
Router::connect(
'/responsables-departementaux',
array('controller' => 'membres', 'action' => 'respdptlist'));
Router::connect(
'/representants-ctm',
array('controller' => 'membres', 'action' => 'ctmlist'));
Router::connect(
'/representants-chsct-m',
array('controller' => 'membres', 'action' => 'chsctlist'));
Router::connect(
'/representants-cnas',
array('controller' => 'membres', 'action' => 'actionsocialelist'));
//Url rewriting pour les stages
Router::connect(
'/stages',
array('controller' => 'stages', 'action' => 'index',1));
Router::connect(
'/stages-sante-et-securite-au-travail',
array('controller' => 'stages', 'action' => 'index',2));
Router::connect(
'/stages-action-sociale',
array('controller' => 'stages', 'action' => 'index',3));
//Url rewriting divers
Router::connect(
'/resolutions-de-congres',
array('controller' => 'Docs', 'action' => 'index',10));
Router::connect(
'/statuts-federation',
array('controller' => 'pagestatiques', 'action' => 'affiche',2));
Router::connect(
'/reglement-du-cdas',
array('controller' => 'pagestatiques', 'action' => 'affiche',4));
Router::connect(
'/accueil',
array('controller' => 'pages', 'action' => 'display', 'home'));
Router::connect(
'/accueil', |
Partager