do you want to filter the select based on some other user input? Or do you
just want a filtered list?

I filter based on user input by using the "search" plugin (see cakeDC) to
provide a nice way to get reusable searches, and a spot of ajax.

To just filter the list once (without accounting for user input on the
filtering), just condition $users back in the model.....


On Mon, Aug 20, 2012 at 9:53 AM, mohit kumar <[email protected]> wrote:

> Hi Folks,
>
> I am using the following code to display all the users in the my form.
>
> echo $this->Form->input('User',array(
>>             'label' => __('Users',true),
>>             'type' => 'select',
>>             'multiple' => 'checkbox',
>>             'options' => $users,
>>         ));
>
>
>
>
>>  Which essentially gives me all the users from that model. What if I
>>>>> need to display the users based on some criteria. Like sorting them on one
>>>>> criteria,
>>>>>
>>>>
> *With Best Regards,
> Mohit Kumar <http://kumarmohit.com>*
> *+91-9582894570*
>
>  --
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

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


Reply via email to