I am new to symfony.
How can I get from Symfony 1.4 the URI path ?
I have tryied like that:
sfContext::getInstance()->getRequest()->getRelativeUrlRoot()
but is not working.
getCurrentInternalUri is, like his name tell, the internal URL, to be used in internal routing functions such as link_to.
The question is about the current URI and even if the previous answer is marked as accepted, here is the method to fetch the current URI in symfony 1.4.
$context->getRequest()->getUri();
In an action :
public function executeDelete(sfWebRequest $request)
{
$uri = $request->getUri();
}