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

[eluser]qpixo[/eluser]
[quote author="weboap" date="1337204285"]normally with the hmvc you will have

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

[/quote]

Yes this is what I'm using with MX_Controller but I'm having trouble with my route

HMVC structure:

Code:
// Login
application/modules/login/controllers
application/modules/login/models
application/modules/login/views
application/modules/login/config/routes.php

// Site
application/modules/site/controllers
application/modules/site/models
application/modules/site/views
application/modules/site/config/routes.php

Login routes file
Code:
$route['login'] = "login/index";


Site routes file
Code:
$route['(:any)'] = "site/index";
$route['(:any)'] = "site/loadPage/$1";

The problem is: It doesn't recognize http://www.site.com/contact or http://www.site.com/about
As error it says: Page request not found


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