On Jun 5, 2011, at 12:01, Philip Medes wrote:

>> Where did you put your default.ctp? What's in it?
> location: app/views/layouts
> contents:
> <html>
>  <head>
>   <title>My Cake Blog Application</title>
>   <?=$html->css('styles');?>
>  </head>
>  <body>
>   <div id="container">
>   <div id="content">
>    <?=$content_for_layout;?>
>   </div>
>   </div>
>  </body>
> </html>
> 
>> Where did you put your style.css?
> app/webroot
> 
>>> I then tried rerunning the application and the only output I got was:
>>> css('styles');?>

Ok, sounds like you're accessing the .ctp file directly in the web browser, 
which is not at all how CakePHP works, as explained elsewhere in this thread.

Also, "$html->css" is old CakePHP 1.2 syntax. For CakePHP 1.3 you would use 
"$this->Html->css".

Furthermore the css file will need to be in app/webroot/css.

Documentation:

http://book.cakephp.org/view/1437/css



-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to