1

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.

user2566987
  • 308
  • 1
  • 9

1 Answers1

3

From within the controller...

$this->request->env('base');
6124j50n
  • 215
  • 1
  • 8