In my layout I initially used:
<?php echo $html->meta('favicon.ico', '/favicon.ico', array('type' =>
'icon')); ?>
However, the correct path was not being generated. In other words,
the href attribute was always set to "/favicon.ico" even if the
application was installed to a sub web. The $html->css(), $html-
>image() and $javascript->link() all work as expected.
I changed my favicon tags to be:
<link rel="icon" href="<?php echo $html->url('/favicon.ico'); ?>"
type="image/x-icon"/>
<link rel="shortcut icon" href="<?php echo $html->url('/
favicon.ico'); ?>" type="image/x-icon"/>
and now the correct path is always generated. My concern is that I
don't see $html->url() in the 1.2 API reference. Is it deprecated?
Is my usage of the $html->meta() method correct? Is the favicon path
a known issue?
thanks,
Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---