On May 4, 2011, at 15:47, Ross wrote:

> I just got started with CakePHP, and have the following in  my layout,
> between the <head> tags's as you'd expect:
> 
> <?php echo $this->Html->meta('icon') . "\t\n";   ?>
> 
> The output, however is:
> 
> <link href="/cakephp/myapp/favicon.ico" type="image/x-icon"
> rel="icon" />
> <link href="/cakephp/myapp/favicon.ico" type="image/x-icon"
> rel="shortcut icon" /
> 
> Now it's not the end of the world, and I know I can do it manually,
> but could someone please shed some light as to why this is repeated
> twice, with only "shortcut" added? It doesn't make a lot of sense to
> me.

Some browsers use link rel=icon. Some browsers use link rel=shortcut icon. To 
support all browsers, you must add both lines. That's why CakePHP adds both 
lines.



-- 
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