Ouzo is compliant with PSR-4 specification. By default newly created project derived from ouzo-app will have PSR-4 structure as well. However, you can use any class loading method: PSR-4, PSR-0, classmap or whatever.
There are three types of classes which Ouzo is expecting to be in specific locations:
- Controllers - under
- Models - under
- Widgets - under
Changing the defaults¶
If you wish to change the defaults, it can be done easily with configuration settings:
$config['namespace']['controller'] = '\\My\\New\\Controller'; $config['namespace']['model'] = '\\My\\New\\Model'; $config['namespace']['widget'] = '\\My\\New\\Widget';