Hi!

I have: Post (id,name)
Tag (id,name)
Category (id,name)

Post HABTM Tag
Post HABTM Category

Post -> Tag jointable Posts_Tags: id, post_id, tag_id
Post -> Category jointable Posts_Categories: id, post_id, category_id

All model, controller - are good and working perfectly until...
...

..until I get posts without any conditions. But, how to get all posts,
where tag.id => 1, category.id => 1?
In paginate style?

I tryied to change $this->paginate("conditions" => array(...) a lot of
variant, but every time get crash.

How it's working?

CakePHP 1.2 - release (latest)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to