Hi all,
I've a table which contain some Posts, a table which contain some
Tags, and a HABTM relation betwen them !
My willing : find the best way to select all posts that are related to
a specific tag.
Right now, I select the specific tag in the tag controller, and I get
also the related posts thanks to the HABTM relation. It's work fine,
but I'm in troubles for setup a pagination now ...
Is it possible to select posts from the post controller by adding a
condition in my request ? (it will make the pagination much easier, I
think).
I try to do that :
$posts = $this->paginate('Post', array( 'Tag.name' => $name));
but that doesn't work :(
thank !
Cordially,
Neveldo : http://www.neveldo.fr
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---