tags:

views:

396

answers:

1

hi, I couldn't get it to work on symfony 1.4.5 I have a route :

edit_page:
  url: /editpages/:page
  param: { module: pages, action: edit }

and I want to get to url with a url_for() helper.

 <a class="float-right rounded-btn" href="<?php echo url_for('@edit_page'); ?>">Configure</a>

this one just is giving me and :

The "/editpages/:page" route has some missing mandatory parameters (:page).

+5  A: 

When error message tells that "route has some missing mandatory parameters", it is a clear sign that you have to add missing mandatory parameters to the route. :)

url_for('@edit_page?page=configure');
Alexander Konstantinov