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.

有帮助吗?

解决方案

From within the controller...

$this->request->env('base');
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top