how to put action as a parameter in the url?
example:
router:
$this->add (
'/controller/:action/:int/:params',
array (
'action' => 1,
'id' => 2,
)
)
->setName ( 'Router' );
volt:
{{ url(['for': 'Router', 'action':'index', 'id':51 ]) }}
return localhost/controller//51