[ Index ]
 

Code source de PHPonTrax 2.6.6-svn

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/config/ -> routes.php (source)

   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  ?>


Généré le : Sun Feb 25 20:04:38 2007 par Balluche grâce à PHPXref 0.7