And what I forgot to mention, from a View template, you should use
$this->Html->url('/', true) to generate a full URL. It will use
Router::url() anyway, but will save you the hassle of doing an App::uses()
in the .ctp.
On Saturday, 1 February 2014 16:22:54 UTC+10, Reuben wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.