Unable to add yii extension to my project?

依然范特西╮ 提交于 2019-12-10 20:09:05

问题


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:


"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.



来源:https://stackoverflow.com/questions/12578217/unable-to-add-yii-extension-to-my-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!