Welcome Guest, Not a member yet? Register   Sign In
routing tips
#1

[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
#2

[eluser]Pascal Kriete[/eluser]
Did you read the corresponding user guide page?

Oh, and welcome to CodeIgniter.
#3

[eluser]rafiqasad[/eluser]
Yes i read that but i want some more detail
#4

[eluser]Yash[/eluser]
What part is not clear.

Doc are more than enough. I feel...
#5

[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?
#6

[eluser]Pascal Kriete[/eluser]
Yup, a dollar sign followed by a number references the corresponding capture group. Standard regular expression syntax.
:num == \d+
:any == .+




Theme © iAndrew 2016 - Forum software by © MyBB