This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
sokser+deatr10685
I have two components, called stores and deals. To simplify my code I want to reuse a number of functions from the deals component in the stores component. In my function in stores I run code similar to the following:
function onRun()
{
$d = new Deals;
$results = $d->localdeals();
....
}
This results in the following error: "The component does not contain a method 'param'."
This is a result from the localdeals() function using the method:
$this->param('id')
How can I set this up so that my initiated class "deals" can access "$this->param('id')". Thanks.
1-1 of 1