phpjoomlajoomla2.5

How to pass variables from Joomla controller to a model?


I have tried to find info about it. still no way to do it, any idea how to do it?

p.s. I work on Joomla 2.5 creating an MVC component.


Solution

  • Try to use this something like this .

    $model = $this->getModel('mymodel');
    $item=$model->filterSection($variable);