Re: Best practice for CSS

2006-11-12 Thread leamas

Thanks!  
I really appreciate the help. :)


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---



Re: Best practice for CSS

2006-11-09 Thread mariano.iglesias

It's a very simple issue. You shouldn't overwrite / edit the
cake.generic.css file but instead produce your own css file. Let's say
you've created your own styles.css file. Save this file under your
webroot/css directory.

Then, edit your app/views/layout/default.thtml file and in the header
remove any CSS file declaration you won't be using (perhaps cake's
generic CSS) and instead link to your own CSS file, like this:

?php echo $syhtml-css('styles'); ?

Notice how I did not include the .css extension.

-MI


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---



Re: Best practice for CSS

2006-11-09 Thread mariano.iglesias

Sorry, $syhtml should be $html. I was just using a helper I've extended
from cake's html helper :)

So it should be:

?php echo $html-css('styles'); ?


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---