For URLs, you can use HtmlHelper::url() and for links
<a href="<?=$this->Html->url('/'); ?>">Home</a>

HtmlHelper::link() benefit is decoding and converting special HTML entities 
<-> characters
(when you link some code or URL)

On Sunday, July 1, 2012 6:15:00 AM UTC+2, Chetan Patel wrote:
>
> Hello,
>
> 1) I tend to have about 3 environments my app run on (local, dev and 
> production). Local and dev usually run in a subfolder setup and production 
> runs on a root domain. The reason I use the helpers for links and images is 
> because this way I don't need to worry about the base url when linking and 
> pointing to images. It's very easy and portable. 
> 2) For images and links, I see at least one major advantage of using 
> helpers : those will deal with absolute-URLs and http/https protocols *(for 
> href/src that point to your website)*, no matter where your application 
> is deployed.
>
> Tx
> Chetan
>
> On Sun, Jul 1, 2012 at 7:08 AM, Marcelo Custódio <
> [email protected]> wrote:
>
>> Isn't it much slower concerning development time ?
>>
>> What are the advantages of of HTML->link ?
>>
>> Thanks !
>>
>> -- 
>> Our newest site for the community: CakePHP Video Tutorials 
>> http://tv.cakephp.org 
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
>> others with their CakePHP related questions.
>>  
>>  
>> To unsubscribe from this group, send email to
>> [email protected] For more options, visit this group 
>> at http://groups.google.com/group/cake-php
>>
>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to