Using url_for in actions


/ Published in: Symfony
Save to your folder(s)

Same method can be applied anywhere in the application, just change $this->getContext() to sfContext::getInstance()


Copy this code and paste it in your HTML
  1. $this->getContext()->getConfiguration()->loadHelpers(array('Url'));
  2. url_for('@payment_success')

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.