Yii Framework Forum: Advanced Search Function - Yii Framework Forum

Jump to content

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

Advanced Search Function Rate Topic: -----

#1 User is offline   zawzaw 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 08-February 13

Posted 08 February 2013 - 02:54 AM

Hi,

I am new in yii framework. Currently, i encounter the problem to create customized search function.

My idea is when user choose fields and click show button , i want to show only relative data records.

Please check the attachment file.

Thank you

Attached File(s)

  • Attached File  Scan1.jpg (244.93K)
    Number of downloads: 22

0

#2 User is offline   le_top 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 186
  • Joined: 08-June 10
  • Location:France

Posted 08 February 2013 - 02:59 AM

I suggest that you use Gii to create the Crud operations that have a similar functionality. You can than peek in on how that is done and adapt the generated pages to your needs.
0

#3 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 1,522
  • Joined: 16-February 11
  • Location:Japan

Posted 08 February 2013 - 04:26 AM

Hi zawzaw, welcome to the forum.

I agree with le_top. Gii generated "admin" page is truly a good starting block, because it already has an "advanced search" functionality.

Please take a look at this wiki article.
It explains the "admin" page, and you will know how you can customize it to your needs.
http://www.yiiframew...ivedataprovider
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