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

Procedural File: routes.php

Source Location: /data/config/routes.php



Page Details:

Configuration file to define URL to action mapping

This file contains one or more PHP statements that call $router->connect() to add routes to the route table stored in the Router object pointed to by $router.

Add your own custom routes here. The priority is based upon order of creation: first created -> highest priority.

Here's a sample route: $router->connect( "products/:id", array(":controller" => "catalog",

You can have the root of your site routed by hooking up "". Just remember to delete public_html/index.html. $router->connect( "", array(":controller" => "welcome") );

Install the default route as the lowest priority.




Tags:

filesource:  Source Code for this file








Documentation generated on Thu, 04 May 2006 19:47:53 -0600 by phpDocumentor 1.3.0RC4