Saturday, September 25, 2010

Re: HABTM retrieve data

I want list to display all subscribers which are not belonging to that
particular distribution list

On Sep 25, 3:09 am, Tilen Majerle <tilen.maje...@gmail.com> wrote:
> emm...u mean to display for input select type?
>
> if it is so...then do this:
>
> {{{
>
> $result = $this->Subscriber->Distributer->find("list");
> $this->set(compact('result'));
>
> }}}
>
>  //and then in view
>
> {{{
>
> print $form->input("Distributer"); //will create a multiple select :D
>
> }}}
>
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/9/25 Avinash <aviban...@gmail.com>
>
> > I have two models subscribers and distribution list, the relation
> > between them is HABTM, now some subscribers are associated with the
> > distribution list. I'm giving an option of adding more subscribers to
> > a distribution list, now i want to display list of subscribers which
> > are not associated to that distribution list
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: