On 16 Nov 2011, at 20:34, Davor Ilic wrote:

> i use $this->Html->css('style.css') in my Themed folder. The structure look 
> like this:
> 
> app/View/Themed/sm
>    /Layouts
>    /Elements
>    /webroot
> 
> in elements i´ve split up into header.ctp, body.ctp,footer.ctp , etc.
> 
> In the header.ctp i use the $this->Html->css('style.css') to call my 
> stylesheet but it calls the wrang one it calls the stylesheet from 
> app/webroot/css
> 
> it gives me everytime "/css/style.css" an not this "/theme/sm/css/style.css" 
> how i need it.
> 
> this is my app/View/Themed/sm/Elements/header.ctp:
> 
> http://pastebin.com/PtgShyk7
> 
> this is my app/View/Themed/sm/Layouts/default.ctp:
> 
> http://pastebin.com/ZXNnmBsK
> 
> 
> did i do domething wrong by using it?
> 

where are you specifying which theme you are using?

you will need to place 

var $theme = 'example';

in your controllers or within app_controller if its for all controllers

http://book.cakephp.org/view/1093/Themes

....................................
Mike Karthäuser
Director, Brightstorm Ltd.

1, Brewery Court
North Street
Bristol
BS3 1JS

[email protected]
www.brightstorm.co.uk
+44(0) 7939252144
....................................





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