Re: HTML helper (Meta Icon) duplicating unnecessarily?
That makes sense! Thank you.
On May 5, 9:28 am, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home