Welcome Guest, Not a member yet? Register   Sign In
using ci to route domain.com/variable_here ?
#5

[eluser]pickupman[/eluser]
You would need to build routes specifying controllers first then have (:any) rule last.

Code:
$route['controller1/(:any)]' = 'controller1/$1';
$route['controller2/(:any)]' = 'controller2/$2';
//etc or could do this dynamically by reading directory then loop to create routes

//Add last
$route['(:any)'] = 'user/$1'; //route any uri not above to the user controller.


Messages In This Thread
using ci to route domain.com/variable_here ? - by El Forum - 07-13-2010, 10:36 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-14-2010, 06:56 AM
using ci to route domain.com/variable_here ? - by El Forum - 07-14-2010, 05:45 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-14-2010, 07:03 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-14-2010, 07:13 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-22-2010, 06:49 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-22-2010, 06:58 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-24-2010, 06:57 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-25-2010, 01:25 AM
using ci to route domain.com/variable_here ? - by El Forum - 07-25-2010, 10:33 AM
using ci to route domain.com/variable_here ? - by El Forum - 07-25-2010, 12:27 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-25-2010, 02:09 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-25-2010, 02:17 PM
using ci to route domain.com/variable_here ? - by El Forum - 07-25-2010, 02:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB