Yii Framework Forum: Search form - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Search form Rate Topic: -----

#1 User is offline   qwerty 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 290
  • Joined: 20-November 08

Posted 03 February 2009 - 11:18 AM

Hi,
I intend to write a search form with multiple fields, something like advanced search. Is there a class, like CSort or CPagination, which sets the conditions in sql query? Do I need to write a query from scratch?

Thanx!
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,892
  • Joined: 04-October 08
  • Location:DC, USA

Posted 03 February 2009 - 11:21 AM

Nope. You need to do it by yourself. Remember to use bindValue or bindParam to avoid SQL injection attack.
0

#3 User is offline   qwerty 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 290
  • Joined: 20-November 08

Posted 03 February 2009 - 11:27 AM

thanx for quick answer :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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