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

[eluser]Pades[/eluser]
Hi. I have array in my config and I get it to foreach. It works ok but how can I get parameter from any modules. For example I want parameter 1 to custom/custom/index.

Thank you for reply

Code:
$config['modules'] = array('calendar/calendar/index','randphoto/randphoto/index','feedback/feedback/index','survey/survey/index','custom/custom/index');

Code:
foreach ($this->config->item('modules') as $key) {
        echo Modules::run($key);
      }

If I try alone, it works fine but I want it in array
Code:
echo Modules::run('custom/custom/index', 1);
#2

[eluser]theprodigy[/eluser]
Quote:If I try alone, it works fine but I want it in array
Code:
echo Modules::run('custom/custom/index', 1);
I'm not exactly sure what you are asking.

Are you saying you want "custom/custom/index" as an array (like below)?
Code:
array(
'custom',
'custom',
'index'
)




Theme © iAndrew 2016 - Forum software by © MyBB