Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In a very small nutshell:</p> <p><strong>Block</strong> are responsible for rendering content (everything from frontend, backend, emails, and more). If content is being displayed somewhere chances are it is a block.</p> <p><strong>controllers</strong> are responsible for processing all requests made via a url. If you hit the url <a href="http://www.example.com/catalog/product/view/id/9/">http://www.example.com/catalog/product/view/id/9/</a> you hit the <em>catalog</em> module in the <em>controllers/ProductController.php</em> and inside of that the <em>viewAction()</em> method. If you hit a URL in Magento the request passes through one or more controllers.</p> <p><strong>etc</strong> contains any configuration xml files for the modules. These are responsible for everything from ACL (access control lists) to how to access blocks/models etc to system configuration settings. Some sample files:</p> <ul> <li>adminhtml.xml - Handles much of the admin side. It handles ACL and Menu control. This file is optional.</li> <li>config.xml - Handles all the base configurations for a module. This file defines how/where to find helpers, blocks, models, resources, default module settings, rewrites, observers, frontend layout files, and a slew of other configurations. This file is required for a module to function.</li> <li>System.xml - Contains all system configurations inserted into the System -> Configuration section of the site.</li> <li>There are others, but they are more advanced topics than what you are asking for.</li> </ul> <p><strong>Helper</strong> - These files are "helpers". They contain functions that are common to the module or that may be accessed by other modules. One functionality of these is to provide translations. In addition, Data.php is the default helper that is included here. If you have system configurations a Data.php is required for the system configuration to appear correctly.</p> <p><strong>Model</strong> - These are your objects of data. For example a Product or Category is a model. They provide data management functions. They interface with a Resource folder contained in the model folder to access the database, and Collections to get a collection of objects.</p> <p><strong>sql</strong> - These are your setup scripts. When a module is installed if configured correctly some changes might need to be made to the database: adding tables, attributes to products, or custom configurations.</p> <hr> <p>I recommend taking a look at <a href="http://alanstorm.com/category/magento">http://alanstorm.com/category/magento</a></p> <p>He has many samples, tutorials, and other good tips and is a more complete starting place.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload