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 cake-php@googlegroups.com
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