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

2012-07-03 Thread lowpass
On Sun, Jul 1, 2012 at 5:12 AM, rchavik rcha...@gmail.com wrote:


 On Sunday, July 1, 2012 8:38:36 AM UTC+7, Marcelo Custódio wrote:

 Isn't it much slower concerning development time ?

 What are the advantages of of HTML-link ?


 It understands your routes.

++ on that. If the client suddenly wants posts to be blog in the
URL one need only change the route file.

As for development time, I personally don't find that it takes me much
longer at all. And it also helps to keep clear what a given link is
all about, both for my own sanity and any future developer who might
come across it. Which controller? Which view? Admin or not? etc.

And the extra hit with having the helper create the link is minimal if
you're using a cache. I had the same reservations when I first began
with Cake but I now embrace Html::link().

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


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

2012-07-01 Thread majna
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 
 marcelocusto...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-07-01 Thread rchavik


On Sunday, July 1, 2012 8:38:36 AM UTC+7, Marcelo Custódio wrote:

 Isn't it much slower concerning development time ?

 What are the advantages of of HTML-link ?


It understands your routes.

 


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


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

2012-07-01 Thread Miles J
http://milesj.me/blog/read/end-html-helper

On Saturday, June 30, 2012 6:38:36 PM UTC-7, Marcelo Custódio 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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-06-30 Thread Marcelo Custódio
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php