Welcome Guest, Not a member yet? Register   Sign In
route dose not work to sub folders
#14

(04-08-2015, 02:08 PM)CroNiX Wrote: Probably because it takes CI extra time to figure out if the requested controller is in a subdirectory, or a sub-sub directory, etc. All it knows is the requested route is 'something/something_else/another_thing'. It doesn't know whether "something" is a controller, or a directory, so it has to look until it finds it. The more layers of subdirectories the more it has to check.

So basically it will take less time for CI to find CI.com/about-us/page/1 with one-to-one relationship between a URL string and its corresponding controller class/method than re-routing with $route['about-us/(:any)'] = "about_us/page/index/$1"; having the controller in a sub folder?
Reply


Messages In This Thread
route dose not work to sub folders - by Bassam - 04-07-2015, 10:38 AM
RE: route dose no work to sub folders - by Bassam - 04-07-2015, 12:40 PM
RE: route dose no work to sub folders - by Narf - 04-07-2015, 01:05 PM
RE: route dose no work to sub folders - by Bassam - 04-07-2015, 01:17 PM
RE: route dose no work to sub folders - by Bassam - 04-08-2015, 08:32 AM
RE: route dose no work to sub folders - by Narf - 04-08-2015, 08:56 AM
RE: route dose no work to sub folders - by Mel9pr - 04-08-2015, 01:57 PM
RE: route dose no work to sub folders - by Bassam - 04-08-2015, 12:36 PM
RE: route dose no work to sub folders - by Narf - 04-08-2015, 01:14 PM
RE: route dose no work to sub folders - by CroNiX - 04-08-2015, 01:34 PM
RE: route dose no work to sub folders - by CroNiX - 04-08-2015, 02:08 PM
RE: route dose no work to sub folders - by Mel9pr - 04-08-2015, 02:21 PM
RE: route dose no work to sub folders - by Narf - 04-08-2015, 02:48 PM
RE: route dose no work to sub folders - by Bassam - 04-09-2015, 05:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB