Wednesday, June 12, 2013

Re: How to correctly add a favicon in a cakephp layout???

Hello

Updating link: http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html (for ver 2.x)

And a general Google search at https://www.google.co.in/search?q=inserting+well+formatted+elements+cakephp , in case the above link is also changed.

Warm regards
Gopal

On Monday, December 1, 2008 11:08:38 AM UTC-8, Federico Rinaldi wrote:
Take a look at: http://book.cakephp.org/view/206/Inserting-Well-Formatted-elements especially the method image for inserting images and meta for the favicon stuff.

Regards,

FedeX

On Mon, Dec 1, 2008 at 7:07 AM, Milmar <milma...@gmail.com> wrote:

Currently I'm using the following method:

<head>
       <?php echo $html->charset(); ?>
       <title>
               <?php echo $title_for_layout; ?>
       </title>
       <?php
               echo $html->css('cake.generic');
               echo $javascript->link('prototype-1.6.0.2');
               echo $scripts_for_layout;
               echo $html->meta('icon','/myapp/img/favicon.ico', array
('type' =>'icon'));
       ?>
</head>

Is there any way that cake could automatically identify where the
"img" folder is located so that I would no longer need to input the
full address of my favicon in the url?
I'm looking for something similar to $html->css() or $javascript->link
() where the full path to the css or js file no longer needs to be
specified.


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: