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.