<?php
echo $html->doctype('xhtml-trans') ?>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
    <?php echo $html->charset(); ?>

    <title><?php echo $title_for_layout; if(Configure::read('debug'))
echo "cake: " . Configure::version();    ?></title><?php
    echo $html->css($myCSS, Array('media' => 'screen'));
    ?>
</head>
<body>
    <div class="alert">
    <?php echo $content_for_layout; ?>
    </div>
</body>
</html>

when myCSS is an array of
- or -
single string referance to

css file(s)

if test.css is in css then your ref would be 'test' the file name minus
suffix or 'simple/test' if a directory in webroot/css simple contains the
test.css file.  or an array of strings

- S


2009/4/23 christopher <toze...@hotmail.co.uk>

> uld anyone tell me how to use my own CSS style sheet in Cake
> PHP.  I have just started using CakePHP and am having difficulty.
> I have created teh default.ctp file in the web root and the CSS file
> in the views layout folder but I think  the default code is
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to