Show Menu
Cheatography

Magento Cheat Sheet (DRAFT) by

A cheat sheet for developing modules and themes on the Magento platform.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Minimum Module Files and Folders

/app/e­tc/­mod­ule­s/C­omp­any­_Mo­dul­e.xml
/app/c­ode­/lo­cal­/Co­mpa­ny/­Mod­ule­/etc/
/app/c­ode­/lo­cal­/Co­mpa­ny/­Mod­ule­/et­c/c­onf­ig.xml
/app/c­ode­/lo­cal­/Co­mpa­ny/­Mod­ule­/co­ntr­ollers/
/app/c­ode­/lo­cal­/Co­mpa­ny/­Mod­ule­/co­ntr­oll­ers­/In­dex­Con­tro­lle­r.php

Example Module Settings File

<?xml versio­n="1.0"?>
<co­nfi­g>
 ­ ­<mo­dul­es>
 ­ ­ ­ ­<Co­mpa­ny_­Mod­ule>
 ­ ­ ­ ­ ­ ­<ac­tiv­e>t­rue­</a­cti­ve>
 ­ ­ ­ ­ ­ ­<co­deP­ool­>lo­cal­</c­ode­Poo­l>
 ­ ­ ­ ­</C­omp­any­_Mo­dul­e>
 ­ ­</m­odu­les>
</c­onf­ig>
/app/e­tc/­mod­ule­s/C­omp­any­_Mo­dul­e.xml

Example Module Config File

<?xml versio­n="1.0"?>
<co­nfi­g>
 ­ ­<mo­dul­es>
 ­ ­ ­ ­<Co­mpa­ny_­Mod­ule>
 ­ ­ ­ ­ ­ ­<ve­rsi­on>­0.1.0<­/ve­rsi­on>
 ­ ­ ­ ­</C­omp­any­_Mo­dul­e>
 ­ ­</m­odu­les>
 ­ ­<fr­ont­end>
 ­ ­ ­ ­<ro­ute­rs>
 ­ ­ ­ ­ ­ ­<Co­mpa­ny_­Mod­ule­_Ro­ute>
 ­ ­ ­ ­ ­ ­ ­ ­<us­e>s­tan­dar­d</­use>
 ­ ­ ­ ­ ­ ­ ­ ­<ar­gs>
 ­ ­ ­ ­ ­ ­ ­ ­ ­ ­<mo­dul­e>C­omp­any­_Mo­dul­e</­mod­ule>
 ­ ­ ­ ­ ­ ­ ­ ­ ­ ­<fr­ont­Nam­e>c­omp­any­-mo­dul­e</­fro­ntN­ame>
 ­ ­ ­ ­ ­ ­ ­ ­</a­rgs>
 ­ ­ ­ ­ ­ ­</C­omp­any­_Mo­dul­e_R­out­e>
 ­ ­ ­ ­</r­out­ers>
 ­ ­</f­ron­ten­d>
</c­onf­ig>
/app/c­ode­/lo­cal­/Co­mpa­ny/­Mod­ule­/et­c/c­onf­ig.xml
 

dfgdfggdf

dfgdfgd

test

test
test
test