Gaurav Rai
Saturday, April 26, 2014
If you do need to get the base url in Cake, you can use the Router class
//with http://site.com/my_app
echo Router::url('/') //-> /my_app
echo Router::url('/', true) //-> http://site.com/my_app
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment