Welcome Guest, Not a member yet? Register   Sign In
Urls with more parameters do not work
#2

(:num) will match a segment containing only numbers. (:any) will match a segment containing any character (except for ‘/’, which is the segment delimiter).

With regular expressions, you can also catch multiple segments at once. For example, if a user accesses a password protected area of your web application
and you wish to be able to redirect them back to the same page after they log in, you may find this example useful:

PHP Code:
$route['login/(.+)'] = 'auth/login/$1'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Urls with more parameters do not work - by InsiteFX - 11-26-2016, 11:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB