Adding multiple parameters to a Resources::url() request in CakePHP

Posted by skerit on Stack Overflow See other posts from Stack Overflow or by skerit
Published on 2012-06-20T15:12:50Z Indexed on 2012/06/20 15:15 UTC
Read the original article Hit count: 280

Filed under:

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')
        )
);

© Stack Overflow or respective owner

Related posts about cakephp