gii

getting Gii to work on Yii 2.0

大兔子大兔子 提交于 2019-11-29 09:52:26
i downloaded the advanced template, extracted it and changed the root documents for the back-end and the front-end, but i can't seem to figure out how to get Gii working to perform the crud operations. there is require and require-dev field in the composer.JSON i included gii in both of them and each one separately with no luck. i also tried getting the template through composer, and while installing i saw gii as installed, but still could not get it to work. this is where i got my Yii template: https://github.com/yiisoft/yii2-app-advanced girish This is how to get Gii working from a remote

getting Gii to work on Yii 2.0

十年热恋 提交于 2019-11-28 03:19:04
问题 i downloaded the advanced template, extracted it and changed the root documents for the back-end and the front-end, but i can't seem to figure out how to get Gii working to perform the crud operations. there is require and require-dev field in the composer.JSON i included gii in both of them and each one separately with no luck. i also tried getting the template through composer, and while installing i saw gii as installed, but still could not get it to work. this is where i got my Yii

Yii2 : ActiveQuery Example and what is the reason to generate ActiveQuery class separately in Gii?

一曲冷凌霜 提交于 2019-11-27 07:25:45
Could you provide an example usage. Description will be highly appreciated. I can not find a good example for it. The Active Query represents a DB query associated with an Active Record class. It is usually used to override the default find() method of a specific model where it will be used to generate the query before sending to DB : class OrderQuery extends ActiveQuery { public function payed() { return $this->andWhere(['status' => 1]); } public function big($threshold = 100) { return $this->andWhere(['>', 'subtotal', $threshold]); } } If you worked before with Yii 1 then this is what

Yii2 : ActiveQuery Example and what is the reason to generate ActiveQuery class separately in Gii?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 13:06:52
问题 Could you provide an example usage. Description will be highly appreciated. I can not find a good example for it. 回答1: The Active Query represents a DB query associated with an Active Record class. It is usually used to override the default find() method of a specific model where it will be used to generate the query before sending to DB : class OrderQuery extends ActiveQuery { public function payed() { return $this->andWhere(['status' => 1]); } public function big($threshold = 100) { return