Yii Framework Forum: creating a form - Yii Framework Forum

Jump to content

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

creating a form Rate Topic: -----

#1 User is offline   oink 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-June 12

Posted 31 July 2012 - 05:25 AM

i am new to yii. How do I create a form that is not associated with a model? basically it is suppose to be just a plain search form.
0

#2 User is offline   codesutra 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 596
  • Joined: 15-March 11
  • Location:India

Posted 31 July 2012 - 05:43 AM

View Postoink, on 31 July 2012 - 05:26 AM, said:

i am new to yii. How do I create a form that is not associated with a model? basically it is suppose to be just a plain search form.



Well its the same thing as creating a simple form. You can check a form example which is not associated with any Ative Record class model is a Contact us form in blog demo application.

If you want to create any form then look at above given suggestion in demo blog app. and you can give a specific url for search form by defining a action for form.
Please refer this link for more details.

Also you can get some more detail form this link too.Which is implementing a zend Lucene search.
CodeSutra
0

#3 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 494
  • Joined: 21-May 11
  • Location:India

Posted 31 July 2012 - 05:44 AM

you can take reference of siteController / actionIndex .
Thanks,
Kiran Sharma.
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 31 July 2012 - 06:02 AM

NOTE: merged duplicate posts
Find more about me.... btw. Do you know your WAN IP?
0

#5 User is offline   carolynross 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-August 12

Posted 03 August 2012 - 06:41 AM

View Postjayant, on 31 July 2012 - 05:43 AM, said:

Well its the same thing as creating a simple form. You can check a form example which is not associated with any Ative Record class model is a Contact us form in blog demo application.

If you want to create any form then look at above given suggestion in demo blog app. and you can give a specific url for search form by defining a action for form.
Please refer this link for more details.

Also you can get some more detail form this link too.Which is implementing a zend Lucene search.



Hi

Thanks for the information..it was helpful to me
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