CodeIgniter Forums
Modular Extensions - HMVC - Variable issue in module controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Modular Extensions - HMVC - Variable issue in module controller (/showthread.php?tid=53415)



Modular Extensions - HMVC - Variable issue in module controller - El Forum - 07-23-2012

[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