Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC - Variable issue in module controller
#1

[eluser]Otemu[/eluser]
Hi,

I have a main controller fetching data from model
Code:
$data['dummydata'] = $this->M_Dummy->getSomeDummyDatabaseData();

the main view is loading the partial view, passing the param
Code:
<?php echo Modules::run('partialview/example/index',$dummydata); ?>


If I use var_dump in the partial view I can access the array of data
Code:
var_dump($general);

However if I var_dump in the partial controller it fails, with the message undefined variable, what have I missed??

Thanks for any assistance




Theme © iAndrew 2016 - Forum software by © MyBB