>
> yea only the php worked :/

perhaps you have cake in a  subdirectory?

in which case /subdir/css/cake.generic.css - different if your not using
mod-rewrite

 what's the class you would use for the
> favorite icon?  $html.link is for anchor tags....


Html Helper

    <?php
        echo $html->meta('icon');  ?>

puts out the following (2 tags - both referencing the same ico)
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>

also you may be interested in
http://www.genfavicon.com/


On 15/04/2008, blazingbunny <[EMAIL PROTECTED]> wrote:
>
>
> yea only the php worked :/  what's the class you would use for the
> favorite icon?  $html.link is for anchor tags....
>
>
> On Apr 13, 2:25 am, Adam Royle <[EMAIL PROTECTED]> wrote:
> > either use absolute urls for your css or use the html helper..
> >
> > <link rel="stylesheet" href="/css/cake.generic.css" type="text/css">
> >
> > or
> >
> > <?php echo $html->css('cake.generic'); ?>
> >
> > On Apr 13, 7:46 am,blazingbunny<[EMAIL PROTECTED]> wrote:
> >
> > > I'm trying to learn cake php for a project because it's awesome, and
> > > I'm stuck on something silly.  How do you attach a style sheet or for
> > > that matter an img/js/files and all that stuff in the webroot folder?
> > > Right now I just have their code plus a stylesheet link but nothing
> > > it's not working.  I even made a favorite icon and that's not showing
> > > up either.  What silly mistake am I making?
> >
> > > views/layouts/default.thtml
> >
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > > <html xmlns="http://www.w3.org/1999/xhtml";>
> > > <head>
> > > <title><?php echo $title_for_layout?></title>
> > > <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
> > > <link rel="stylesheet" href="cake.generic.css" type="text/css">
> > > </head>
> > > <body>
> >
> > > <!-- If you'd like some sort of menu to show up on all of your views,
> > > include it here -->
> > > <div id="header">
> > >     <div id="menu">...</div>
> > > </div>
> >
> > > <!-- Here's where I want my views to be displayed -->
> > > <?php echo $content_for_layout ?>
> >
> > > <!-- Add a footer to each displayed page -->
> > > <div id="footer">...</div>
> >
> > > </body>
> > > </html>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to