I am using pyroCMS and i have module A and in that i have a controller, I am getting some values in $var which i defined in function index(), How to load the controller in a different module, I have to use the variable in the controller in my dashboard view
Here is my controller code in module A
public function index()
{
$data = $this->recent();
}
dashboard.php view file
<div class="accordion-body collapse in lst" style="overflow: auto;">
<?php print_r($data );?>
</div>
I am not getting $data in dashboard.php