Accessing symfony uri values
Some useful info:
$request->getHost()
uk.ben.local
$request->getUri()
http://uk.ben.local/frontend_dev.php/checkout/shipping
sfContext::getInstance()->getRouting()->getCurrentInternalUri(false)
checkout/shipping
sfContext::getInstance()->getRouting()->getCurrentInternalUri()
checkout/shipping
url_for(sfContext::getInstance()->getRouting()->getCurrentInternalUri(false))
/frontend_dev.php/checkout/shipping
sfContext::getInstance()->getRouting()->getCurrentRouteName()
default
$request->getHost()
uk.ben.local
$request->getUri()
http://uk.ben.local/frontend_dev.php/checkout/shipping
sfContext::getInstance()->getRouting()->getCurrentInternalUri(false)
checkout/shipping
sfContext::getInstance()->getRouting()->getCurrentInternalUri()
checkout/shipping
url_for(sfContext::getInstance()->getRouting()->getCurrentInternalUri(false))
/frontend_dev.php/checkout/shipping
sfContext::getInstance()->getRouting()->getCurrentRouteName()
default
Comments
Post a Comment