Yii Framework Forum: How do I add a search to the user list page? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do I add a search to the user list page? Rate Topic: -----

#1 User is offline   frocco 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 227
  • Joined: 17-February 10

Posted 28 February 2010 - 05:11 PM

Hello,

I have a table Users and want to add a search input on the list page to filter the list based on input.

I tried the jquery example and cannot get this to work.

I want to step back and just add a simple filter to limit the records displayed.

Thanks

Learning yii.
Regards,

Frank
0

#2 User is offline   mbi 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 604
  • Joined: 08-May 09

Posted 28 February 2010 - 05:38 PM

create a form in your user/list view
in user/list controller check for a param in your post request
add a condition to your criteria object
0

#3 User is offline   frocco 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 227
  • Joined: 17-February 10

Posted 28 February 2010 - 10:06 PM

Is there an easy example for doing this in jquery?

Do I need to add any libs?

The example I found on this site, did not work for me.
It seems like it never called the controller.

Thanks

I am a newbie, so need a simple example.
Regards,

Frank
0

#4 User is offline   frocco 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 227
  • Joined: 17-February 10

Posted 01 March 2010 - 12:50 PM

bump!

Thanks, still stuck
Regards,

Frank
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users