Welcome Guest, Not a member yet? Register   Sign In
HMVC: Routing issue
#2

[eluser]weboap[/eluser]
normally with the hmvc you will have
Code:
/application
/application/modules
/application/modules/module1
/application/modules/module1/home        (controller)
/application/modules/module1/login       (controller)
/application/modules/module2/....    other controllers... in module1


/application/modules/module2
/application/modules/module2/some_default_controller
/application/modules/module2/....    other controllers... in module2

/application/modules/module3
/application/modules/module3/some_default_controller
/application/modules/module3/....    other controllers... in module3


... you get the picture



in module 1 the relation between controllers and the long controller is basically in every controller you test if the user is logged in, if yes run the controller methods if NO redirect to login.....


another step to make https://bitbucket.org/wiredesignz/codeig.../wiki/Home

work is the
routing part

it will be as per the example above in config/routes like

Code:
$route['^(?!module2|module3).*'] = "module1/$0";
$route['module2/(:any)'] = "module2/$1";
$route['module3/(:any)'] = "module3/$1";


hope it help



Messages In This Thread
HMVC: Routing issue - by El Forum - 05-16-2012, 01:25 PM
HMVC: Routing issue - by El Forum - 05-16-2012, 02:38 PM
HMVC: Routing issue - by El Forum - 05-17-2012, 08:22 AM
HMVC: Routing issue - by El Forum - 05-17-2012, 09:38 AM
HMVC: Routing issue - by El Forum - 05-17-2012, 10:59 AM
HMVC: Routing issue - by El Forum - 05-17-2012, 11:16 AM
HMVC: Routing issue - by El Forum - 05-17-2012, 11:45 AM
HMVC: Routing issue - by El Forum - 05-17-2012, 11:55 AM
HMVC: Routing issue - by El Forum - 05-17-2012, 12:00 PM
HMVC: Routing issue - by El Forum - 05-17-2012, 12:07 PM
HMVC: Routing issue - by El Forum - 05-22-2012, 10:32 AM
HMVC: Routing issue - by El Forum - 05-22-2012, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB