HMVC architecture - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: HMVC architecture (/showthread.php?tid=38145) |
HMVC architecture - El Forum - 01-31-2011 [eluser]Unknown[/eluser] Hello. i'm starting a new website with an admin section, and i have questions about best practice for architecture with HMVC. I dont' see how to handle a complete architecture with modules so i was thinking of handling the main structure with controllers, and load modules in thoses controllers ( for ex mysite.com/admin/edit_comments will load controllers>edit_comments and this controller will load severals modules ) Below the structure i was thinking of: index.php - application --controllers ---front page1.php ---front page2.php ----admin -----admin page1.php -----admin page 2.php --modules ---module1 ---module2 Does anyone have any suggestion about HMVC architecture? Thank you HMVC architecture - El Forum - 01-31-2011 [eluser]cmgmyr[/eluser] Take a look at Phil's post here - option #3. Instead of Matchbox, use Modular Extensions here I'm using this setup and it works out really well. If you have any questions, just let me know. -Chris HMVC architecture - El Forum - 02-24-2011 [eluser]Senthilguru[/eluser] Your HMVC implementation should be like this Refer the HMVC part: http://techportal.ibuildings.com/wp-content/uploads/2010/02/MVC-HMVC.png hope you can implement that in CI using wiredesignz's Modular Extensions Cheers, Senthilguru.E |