Re: HABTM and conditions ?

2008-04-25 Thread Neveldo

Thank for your link ! I think it will be helpful for my issue :)

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: HABTM and conditions ?

2008-04-23 Thread inma

Take a look at: 
http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/

Regards.

On 23 abr, 11:41, Neveldo <[EMAIL PROTECTED]> wrote:
> Anybody has a solution ?
>
> 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: HABTM and conditions ?

2008-04-23 Thread Neveldo

Anybody has a solution ?

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



HABTM and conditions ?

2008-04-22 Thread Neveldo

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---