Question

This seems like a really simple question, but having trouble figuring out an answer.

In lithium, How do you get the base url of a site from within the controller?

Thank you.

Was it helpful?

Solution

From within the controller...

$this->request->env('base');
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top