0
votes

I'm using HMVC Modular Extension for CodeIgniter https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home .

call it inside your SITE view easily

Modules::run('modulename/controller/method')

We can pass single parameter like

Modules::run('modulename/controller/method',$parameter)

How can I pass two or more parameters through this?

Codeigniter version : 2.1.3

Thanks

2

2 Answers

1
votes

We can pass two or more variables as shown below

Modules::run('modulename/controller/method',$parameter1,$parameter2,$parameter3)

You can pass more parameters separated by comma.

1
votes

If you want to pass params to the _construct

$modulo = array('programas'=>array('cxcxc','todo'));
$programas = Modules::load($modulo);