routing tips |
[eluser]rafiqasad[/eluser]
Please some one guide me about the routing tips and help provided by the code Igniter. I readu the URL routing file but i want to study it in more depth, please helf me
[eluser]Pascal Kriete[/eluser]
Did you read the corresponding user guide page? Oh, and welcome to CodeIgniter.
[eluser]Yash[/eluser]
What part is not clear. Doc are more than enough. I feel...
[eluser]rafiqasad[/eluser]
$route['product/(:num)'] = "catalog/product_lookup_by_id/$1"; In this example what is $1 and if i have 2 variables then $route['product/(:num)/(:num)'] = "catalog/product_lookup_by_id/$1/?2"; Is $1 reffer to first num and $2 reffer to second num?
[eluser]Pascal Kriete[/eluser]
Yup, a dollar sign followed by a number references the corresponding capture group. Standard regular expression syntax. :num == \d+ :any == .+ |
Welcome Guest, Not a member yet? Register Sign In |