Yii Framework Forum: Does Gii Generate The 'search Model Class'? - Yii Framework Forum

Jump to content

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

Does Gii Generate The 'search Model Class'?

#1 User is offline   Xavier John 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 16-August 13
  • Location:Redmond, WA

Posted 12 September 2013 - 10:13 PM

Does Gii generate the 'Search Model Class'?

I am stuck on the CRUD Generator since it asks for 'Search Model Class'. I don't know what 'Search Model Class' is, and I could not find it in the basic or advanced app.
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 12 September 2013 - 10:25 PM

Search Model Class is a class that will be generated by Gii. It represents the model behind the search form. You should enter the fully qualified class name for it (e.g. app\models\search\PostSearch)
0

#3 User is offline   Xavier John 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 16-August 13
  • Location:Redmond, WA

Posted 12 September 2013 - 10:39 PM

Which Gii generator creates the Search class?
I would assume it should be the Model generator but my model generator is only generating the model.
0

#4 User is offline   qiang 

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

Posted 13 September 2013 - 08:36 AM

The CRUD generator.
0

#5 User is offline   Xavier John 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 16-August 13
  • Location:Redmond, WA

Posted 13 September 2013 - 10:47 AM

View Postqiang, on 13 September 2013 - 08:36 AM, said:

The CRUD generator.



Thanks, solved the problem by manually creating the 'search' folder under models.
So it is probably a small bug in the Yii2 app generator.
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