PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Source for file routes.php

Documentation is available at routes.php

  1. <?php
  2. /**
  3. * Configuration file to define URL to action mapping
  4. *
  5. * This file contains one or more PHP statements that call
  6. * {@link Router::connect() $router->connect()} to add routes to the
  7. * route table stored in the {@link Router} object pointed to by
  8. * $router.
  9. *
  10. * Add your own custom routes here.
  11. * The priority is based upon order of creation: first created ->
  12. * highest priority.
  13. *
  14. * Here's a sample route:
  15. * $router->connect( "products/:id",
  16. * array(":controller" => "catalog",
  17. " :action" => "view") );
  18. *
  19. * You can have the root of your site routed by hooking up "".
  20. * Just remember to delete public_html/index.html.
  21. * $router->connect( "", array(":controller" => "welcome") );
  22. *
  23. * Install the default route as the lowest priority.
  24. *
  25. * @package PHPonTrax
  26. */
  27. $router->connect( ":controller/:action/:id" );
  28.  
  29. ?>

Documentation generated on Thu, 06 Apr 2006 10:58:58 -0600 by phpDocumentor 1.3.0RC4