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

Comments

Popular posts from this blog

deep dive into Material UI TextField built by mui

angular js protractor e2e cheatsheet

react-router v6.4+ loaders, actions, forms and more