/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix()