How to add extensions that developed as modules in yii?
can any one explain extensions as Yii modules and extensions as Yii behavior
How to add extensions that developed as modules in yii? can any one explain
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first part of your Q is a duplicate with this q: https://stackoverflow.com/questions/12008314/modules-in-yii-explain
regarding the “How to Use Modules” part. Modules are may be the easiest way there to extend yii, since all you need to do is two tiny steps:
/protected/modules.I haighly recommend taking a look at the docs above then User-Module (as code sample) to get a better understanding to yii modules.
As for “Extending Yii by Behaviors“, i have been confused myself for a while about that, until i had a chance to use the Multi-Lingual_Behavior
There is no typical way for extending Yii with behaviors, simply because there are multiple options (as you can see in the docs here & here) for using (attaching) behaviors to components (application, models, controllers, …etc)
That said, most of yii-extensions there are supported with good
Usagedocs that are enough in most cases to get them working.