• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
default_controller routing with varibles broken

#4
The documentation states that the default_controller route can be set to a controller name which will be called if the URI contains no data.

http://www.codeigniter.com/user_guide/ge...ved-routes

http://www.codeigniter.com/user_guide/ge...controller

The upgrade notes point out that it will also accept a controller/method pair, but that a previous "bug" which allowed you to set a directory/controller, directory/controller/method, or controller/method/value has been "fixed", so this is no longer possible. However, 'default_controller' and '404_override' are now applied per directory, so the default controller can be added to each directory in your controllers directory to handle URLs pointing to a directory without a controller.

http://www.codeigniter.com/user_guide/in...4-override

In other words, I could not find anything in the documentation which states that a 3-segment value will be accepted for the 'default_controller' route, so the fact that it's being interpreted in a manner which is not desirable is only a bug in the sense that it should probably fail more dramatically.
Reply


Messages In This Thread
RE: default_controller routing with varibles broken - by mwhitney - 06-15-2015, 08:11 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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