Welcome Guest, Not a member yet? Register   Sign In
HMVC: Can't load default index method
#1

[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.
#2

[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
#3

[eluser]Le Bang[/eluser]
Thanks for reply.

I know it can fix.

but, i want it become excellent every thing.




Theme © iAndrew 2016 - Forum software by © MyBB