Base for a static organization website

routes.php 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Routes configuration
  4. *
  5. * In this file, you set up routes to your controllers and their actions.
  6. * Routes are very important mechanism that allows you to freely connect
  7. * different URLs to chosen controllers and their actions (functions).
  8. *
  9. * @link http://cakephp.org CakePHP(tm) Project
  10. * @package app.Config
  11. * @since CakePHP(tm) v 0.2.9
  12. */
  13. /**
  14. * Here, we are connecting '/' (base path) to controller called 'Pages',
  15. * its action called 'display', and we pass a param to select the view file
  16. * to use (in this case, /app/View/Pages/home.ctp)...
  17. */
  18. Router::connect('/', array('controller' => 'pages', 'action' => 'home'));
  19. Router::connect('/:action', array('controller' => 'pages', 'action' => 'default'));
  20. /**
  21. * ...and connect the rest of 'Pages' controller's URLs.
  22. */
  23. //Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
  24. /**
  25. * Load all plugin routes. See the CakePlugin documentation on
  26. * how to customize the loading of plugin routes.
  27. */
  28. CakePlugin::routes();
  29. /**
  30. * Load the CakePHP default routes. Only remove this if you do not want to use
  31. * the built-in default routes.
  32. */
  33. require CAKE . 'Config' . DS . 'routes.php';