This article will demonstrate how to go about adding Magento install and upgrade scripts. Assuming you have read how to add models, resource models and collection, you should be in a good position to add the setup scripts.
Let’s continue with our example store information previously and add data to that.
First of ...
If you are looking to add custom data into Magento, you will need to understand how to go about adding Magento models, resource models, collections and combining them into a custom module.
As an example for the purpose of this article, let’s assume you will be adding a Store Information module.
Assuming you are aware ...
Welcome to Magento Application Initialisation Part 2. This post continues on from Application Initialisation Part 1.
Th next method to look at is _initModules().
The first line that we should be looking at is $this->_config->loadModules().
So the first step is that we are sent to the _loadDeclaredModules() method which then makes a call to the ...
This article aims to assist you in understanding Magento Translations and how they are used to support multiple language views within Magento.
The __()
If you’ve ever delved into Magento templating system and attempted to modify the files you’ll have probably come across pieces of code that look like the following.
Or lines that use ...
Introduction to Magento Factory Methods
Using Magento Factory Methods within the application is easy to do and allows classes to be instantiated using the Factory Pattern. These factory methods are used to instantiate blocks, helpers and models. An example would be when Magento attempts load a product.
The snippet of code is used instead of ...