HelloWorldmodule we created in the Getting started section, but a more complex scenario like an e-commerce site might need modules like
Searchand so, for example.
initmethod of the module is called, which does the following:
endmethod is called.
/srcdirectory of your app, and also in their own subdirectory, which has to be named exactly like your module. The file name has to be also the exact name of you module, plus the
Products, it should be stored on the
Note that both the subdirectory and the file name itself are case-sensitive.
/configdirectory by default, but you can set your own directory specifying the
configDirsetup key in Engine::init
.constants.phpextension. For example, the constants file for a module called
Productswould be stored in
/src/Products/Products.constants.php, and it might look like this: