Yii Module creation Best Practices

Last updated:


  • Any code within your module should only use:

    • Code from the module itself
    • Code from parent modules
    • Code from the Framework folder
    • Code pointed to by aliases set in your main ModuleClass (<name>Module.php) and editable by anyone who uses the module. I.e., should be public properties in the said file.

Dialogue & Discussion