How to pass parameters with $view->action?

Permalink
I'm reading the documentation :
http://documentation.concrete5.org/developers/working-with-blocks/c...

I can generate an URL with the CSRF token and send an AJAX request with jQuery.

The action_like($token = false, $bID = false) method in the controller get successfully the request.

But now, I need to add custom parameters to the url build with the $view->action().

How can I do this?

 
VonUniGE replied on at Permalink Reply
In fact the solution is simple. You can just add parameters to $view->update() method but the last parameter is reserved for the blockID.

The content of my href is generated with:
$view->action('update', Core::make('token')->generate('update_page'),$topicNodeID)

and in the controller the request is treated with
public function action_update($token = false, $topicNodeID = 0,  $bID = false)