Symfony 1.4 generate url for current app


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

This is how to use the $sf_request in a view to build the current base url, including the application file used to build the script.


Copy this code and paste it in your HTML
  1. $sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.