• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom URL routing

#1
[eluser]Beginers[/eluser]
Hi All,

How do i route missing parameters like this?

This is the full url

Code:
http://localhost/sitename/controller_name/function_name/parameter_1/parameter_2

However i want to route this url if it is missing 1 or 2 parameters
Please help. Thanks in advance

#2
[eluser]Aken[/eluser]
Check if the parameters have values in your controller. If not, redirect to the default.

Remember you can give parameters defaults, also, if they are not present.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.