Adding multiple parameters to a Resources::url() request in CakePHP
- by skerit
For the Javascript helper I need to create my links like this:
Resources::url('Product::addToOrder', $id)
But how do I add multiple parameters? I tried to do it in an array, but that did not work.
Here's the js event:
$this->Js->event(
'click',
$this->Js->request(Resources::url('Product::addToOrder', $id),
array('async' => true, 'update' => '#order')
)
);