Unable to add yii extension to my project?

2019-07-01 18:58发布

is their any common method to add extension to my yii project? how can i add extension to my yii please explain the steps

1条回答
闹够了就滚
2楼-- · 2019-07-01 19:29

"Application Configuration" plays important role when installing extensions. By default this configuration will be in a php file (i.e protected/config/main.php )

Yii is a framework, not an application ... so you need to edit the php code yourself.

1) some people develops extensions as Yii components where you need to add these extensions into "components" configuration.

2) Some people develops extensions as Yii modules, you need to add these modules into "modules" configuration.

3) Some people develops behaviors, where you need to edit your Controller or model classes to add these behaviors.

there are many other types of extensions as well... you need to follow the guidelines provided by extension developer.

查看更多
登录 后发表回答