Timeline: 2h
...
Note before start developing module in magento
-Enable dev mode:
Enable the developer mode: bin/magento deploy:mode:set developer
Rename file : pub/errors/local.xml.sample to local.xml
-Magento has cache, so if you doesn't see the code change on the screen, you can run:
Code Block |
---|
bin/magento cache:clean |
to clean the cache
-Some time when code, you need to clear some directory: https://devdocs.magento.com/guides/v2.4/howdoi/php/php_clear-dirs.html
in most case, it is “generated” folder
...
https://devdocs.magento.com/guides/v2.4/architecture/extensibility.html
Module is a structural element of Magento 2 – the whole system is built upon modules. Typically, the first step in creating a customization is building a module.
...