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


You need to login to view comments.