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

Procedural File: myroutes.php

Source Location: /config/myroutes.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:A <important>path</important> $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 Wed, 15 Mar 2006 16:03:53 -0700 by phpDocumentor 1.3.0RC4