My Model Relationships don't work

2012-11-13 Thread Tsampika
I have three models: Category, Post, Attachment
My Relations in these Models are:

1. Category hasMany Post hasMany Attachment 
2. Post hasMany Attachment
3. Category hasMany Attachment

My attachments table has the following fields: id, title, foreign_key, model
The field model contains Category or Post.

*The Error:*
The CategoriesController don't show me the attachments of the posts 
(Category->Post->Attachment), but it show's me the attachments of the 
categories.
Why? Is there something else to do?

Thanks a lot for help,

Regards Bettina


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Override constant CSS_URL in Themes

2012-11-12 Thread Tsampika
Hello,

I'm not sure, if this is possible but i look for a clean solution for this 
problem:

I have multiple themes. In one of those Themes the css files are located in 
an folder called "stylesheets" instead of 'css'. So how can i change the 
constant the html->css helper use just in this theme? Ist there a way over 
the layout file or the index.php in the webroot ?

Thanks a lot (and sorry for my english mistakes^^)

Bettina

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.