HMVC: Can't load default index method - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: HMVC: Can't load default index method (/showthread.php?tid=37058) |
HMVC: Can't load default index method - El Forum - 12-25-2010 [eluser]Le Bang[/eluser] I have just setup CI Modular Extensions - HMVC. it's great!! But i saw a problem following: I create two modules. contact_mod to place at application/controllers/contact_mod.php product_mod to place at application/modules/product/product_mod.php when i test it: Modules::run('contact_mod/data') => call data method => work great! Modules::run('contact_mod') => call index method (default by CI) => work great!! Modules::run('product/product_mod/data') => call data method => work great! but i call: Modules::run('product/product_mod') => call index method (default by CI) => Not working. Please help me. HMVC: Can't load default index method - El Forum - 12-26-2010 [eluser]InsiteFX[/eluser] Modules::run(‘product/product_mod’) => call index method (default by CI) => Not working. Is a default controller not a module so you do not need Modules::run! Also you need to set the default controller in application/config/routes.php If you want to use Mdules::run on contact_mod move it into a module directory! InsiteFX HMVC: Can't load default index method - El Forum - 12-27-2010 [eluser]Le Bang[/eluser] Thanks for reply. I know it can fix. but, i want it become excellent every thing. |