Cheatography
https://cheatography.com
Cheat Sheet for creating a magento module. (for absolute beginners)
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Magento Module Files
/app/code/local/NameSpace/ModuleName |
Rootfolder of your module |
etc/ |
Folder to store config |
etc/config.xml |
There you can define basic config like its version and eventobservers |
etc/config.xml
/config/ |
modules/NameSpace_ModuleName/version |
version of your module |
global/events |
here you can select an observer |
global/events/EventObserver/observers/namespace_modelname/ |
class |
the model to instantiate (namespace_modelname/observer) |
method |
method that will be called |
type |
e.g. singleton |
global/models |
here comes youre models |
global/models/namespace_modelname |
global/models/namespace_modelname/class |
= NameSpace_ModelName_Model |
Activating Module
file |
app/etc/modules/NameSpace_ModuleName.xml |
xml-structure active |
/config/modules/NameSpace_ModuleName/active = true |
xml-structure code-pool |
/config/modules/NameSpace_ModuleName/codePool = local |
|
|
|
|
|