04-02-2009, 12:18 AM
|
#5 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
I have made some additions to my framework and would like anyone who looks at this new copy to also see my routing method located in
/Core/Construction/CoreOO.php
/Core/Construction/Route.php
Dynamic routing works like spo
PHP Code:
$cfg['routing']['url']['products/:alphanum'] = 'store/products/:result'; $cfg['routing']['url']['product\/[a-z]'] = 'store/products/$1'; $cfg['routing']['url']['categories/:num/:alphanum-:num'] = 'store/categories/:result/:result/:result';
the current dynamic routing supports regex and a limited number of wild cars:
:num
:alpha
:alphanum
:any
Regular routing works so
PHP Code:
$cfg['routing']['url']['blogs/joe'] = 'store/blogs/joe';
|
|
|
|