In your layout (which is global and applies to all pages), make sure
the path is absolute (ie: starts with a /).
<link href="/css/mycssfile.css" [snip] />
Dardo mentioned using the HtmlHelper because it'll automatically link
up CSS files to the right path (important if you're working of a local
server where the web folder may not be web root.
<?php echo $html->css('mycssfile'); ?>
On Sat, Jun 28, 2008 at 3:35 PM, dlite922 <[EMAIL PROTECTED]> wrote:
>
> why do I have to link the CSS for all actions other than index?
>
> I'm using a layout and a global CSS for the entire site. This CSS is
> included in the global.
>
> Do I have to include CSS in every action?
>
> That doesn't seem right.
>
> What about images? Those have nothing to do with CSS?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---