Posted By

cburyta on 01/22/10


Tagged

url Smfony sfWebRequest


Versions (?)

Symfony 1.4 generate url for current app


 / Published in: PHP
 

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.

  1. $sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix()

Report this snippet  

You need to login to post a comment.