How the heck should I structure a HMVC project? |
[eluser]gunnarflax[/eluser]
[quote author="Twisted1919" date="1313188927"]the best solution i found when working with hmvc is like: Code: modules In the above solution, you will reach your modules like www.host.com/post (reads post.php controller) www.host.com/post/admin (reads the admin controller) Also you can add following routes: Code: $route['admin/([a-z 0-9~%.:_\-]+)/(.*)'] = "$1/admin/$2"; so that you access the module admin more naturally, like: www.host.com/post (reads post.php controller) www.host.com/admin/post (reads the admin controller)[/quote] I've found this solution on several sites and it seems to me like the best way to keep a truly modular structure ![]() |
Messages In This Thread |
How the heck should I structure a HMVC project? - by El Forum - 08-12-2011, 07:53 AM
How the heck should I structure a HMVC project? - by El Forum - 08-12-2011, 11:42 AM
How the heck should I structure a HMVC project? - by El Forum - 08-12-2011, 11:47 AM
How the heck should I structure a HMVC project? - by El Forum - 08-14-2011, 11:39 AM
|