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.
从控制器内...
$this->request->env('base');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.