I'm switching my component to use the setModel in the controller to set the models up for the view and then get teh view to call the models.
I can set up multiple models and call my basic functions fine, but I cannot find out how to call a funciton inside the model that requires a parameter being sent to it.
My code is as follows :
Code: Select all
Model (the function)
function getbp($cardcode)
{
.....
}
Controller (setting the model)
$view->setModel($this->getModel('bp','questproductModel'));
View (calling the function inside the model)
$result = $this->get('bp','bp');
Cheers