Welcome Guest, Not a member yet? Register   Sign In
HMVC modules
#1

[eluser]boytun[/eluser]
Hello

Please, can some one tell me how can I load a hmvc module inside mvc view. ?

Thanks
#2

[eluser]Otemu[/eluser]
Hi,

Have you followed the instructions here https://bitbucket.org/wiredesignz/codeig...sions-hmvc

Example code below - $param is optional:

Quote:View Partials

Using a Module as a view partial from within a view is as easy as writing:

Code:
<?php echo Modules::run('module/controller/method', $param, $...); ?>
#3

[eluser]boytun[/eluser]
Silly me, it is necessary to extend CI_Controller instead of MX_Controller on all my controllers outside the modules folder. Hope this helps someone else.




Theme © iAndrew 2016 - Forum software by © MyBB