Welcome Guest, Not a member yet? Register   Sign In
Some help..
#32

[eluser]xwero[/eluser]
The last rout i gave you should be as low as possible in the routes configuration file because it's a very greedy match.
There are a few options where you don't need to fill you routes configuration with all controllers you add, but if you only have a few controllers you can do
Code:
$route['(blog|admin)'] = '$1';
$route['([a-z]+)'] = 'main/$1';
Or you can do it the other way around and identify the methods you want as the first segment
Code:
$route['(lists|method2ofmain)'] = 'main/$1';
$route['(method1ofblog|method2ofmblog)'] = 'blog/$1';
The methods can't have the same name as another method/controller otherwise you can end up in the wrong method/controller.


Messages In This Thread
Some help.. - by El Forum - 03-11-2008, 09:05 AM
Some help.. - by El Forum - 03-11-2008, 09:40 AM
Some help.. - by El Forum - 03-11-2008, 04:12 PM
Some help.. - by El Forum - 03-11-2008, 04:37 PM
Some help.. - by El Forum - 03-12-2008, 01:59 AM
Some help.. - by El Forum - 03-12-2008, 02:23 AM
Some help.. - by El Forum - 03-12-2008, 02:27 AM
Some help.. - by El Forum - 03-12-2008, 02:37 AM
Some help.. - by El Forum - 03-12-2008, 02:40 AM
Some help.. - by El Forum - 03-12-2008, 02:40 AM
Some help.. - by El Forum - 03-12-2008, 02:41 AM
Some help.. - by El Forum - 03-12-2008, 02:42 AM
Some help.. - by El Forum - 03-12-2008, 02:42 AM
Some help.. - by El Forum - 03-12-2008, 02:44 AM
Some help.. - by El Forum - 03-12-2008, 02:49 AM
Some help.. - by El Forum - 03-12-2008, 02:51 AM
Some help.. - by El Forum - 03-12-2008, 02:59 AM
Some help.. - by El Forum - 03-12-2008, 03:01 AM
Some help.. - by El Forum - 03-12-2008, 03:02 AM
Some help.. - by El Forum - 03-12-2008, 03:03 AM
Some help.. - by El Forum - 03-12-2008, 03:04 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:06 AM
Some help.. - by El Forum - 03-12-2008, 03:07 AM
Some help.. - by El Forum - 03-12-2008, 03:07 AM
Some help.. - by El Forum - 03-12-2008, 03:08 AM
Some help.. - by El Forum - 03-12-2008, 03:11 AM
Some help.. - by El Forum - 03-12-2008, 03:12 AM
Some help.. - by El Forum - 03-12-2008, 03:13 AM
Some help.. - by El Forum - 03-12-2008, 03:21 AM
Some help.. - by El Forum - 03-12-2008, 07:43 AM
Some help.. - by El Forum - 10-10-2008, 02:07 PM
Some help.. - by El Forum - 10-14-2008, 03:31 AM
Some help.. - by El Forum - 10-14-2008, 03:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB