When creating a module (extension) in Magento, if you are doing anything at all with design or skin files, you know that there’s no way to put those files within your main module directory. If you are like me, you don’t like that fact. I wish my module could all be housed inside one directory, but at this point it can’t. To help with this, I typically create a text file withing the root of my module’s directory like this: app/code/local/Prattski/MyModule/externalfiles.txt
Here I list out every file and it’s path that does not reside in my module directory. This not only helps you not forget what files belong to the module, but also make it easy to remove everything should you need to fully uninstall it. Here is an example:
### Module Files Outside this Directory # Module XML File app/etc/modules/Prattski_MyModule.xml # Frontend Templates app/design/frontend/base/default/layout/mymodule.xml app/design/frontend/base/default/template/mymodule/file1.phtml app/design/frontend/base/default/template/mymodule/file2.phtml # Skin Files skin/frontend/base/default/css/mymodule.css
I would encourage everyone who writes modules to get in this habit. It is not only very useful for yourself, it is also really helpful for any of you creating community extensions to include this so that whoever is installing the files can easily see all that belongs to the module if any modifications need to happen.