Friday, January 31, 2014

Re: constant for base app URL?

To get a full URL, you can use Router::url('/', true).  That will give you the full URL to the application.

For applications running behind a load balancer, you may wish to specify the BASE_URL, but I see you've already found that.

Regards
Reuben Helms

On Monday, 13 March 2006 13:20:32 UTC+10, Dave wrote:
Sorry, I should clarify further. By URL I mean the URL path. So, for
example, if my Cake app can be reached at
http://my.domain/subdir/cake/, then this constant would be
'/subdir/cake'.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: