View Single Post
Old 04-02-2009, 12:18 AM   #5 (permalink)
Enfernikus
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

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'
Attached Files
File Type: zip tsa.zip (69.6 KB, 32 views)
Enfernikus is offline  
Reply With Quote