Saturday, June 30, 2012

Re: Why using HTML->link instead of manually writing an anchor text ?

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 <marcelocustodio@gmail.com> 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
cake-php+unsubscribe@googlegroups.com 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: