Certification

URL Rewrites. Part I (Magento Certified Developer Exam)

December 10, 2012 / Posted in Certification by Aleksander Tretjak
URL Rewrites. Part I (Magento Certified Developer Exam)

Overall structure of an address and its elements is well represented in the first comment to the app/code/core/Mage/Core/Model/Url.php model. You can refresh your knowledge there.

Apache mod_rewrite module plays an important role in URL rewriting. Rules, specified in .htaccess, will not be processed without it. In order to activate URL rewriting, .htaccess.sample file should be renamed .htaccess. The following part is responsible for rewriting: (more…)

Application Initialization (Magento Certified Developer Exam)

December 3, 2012 / Posted in Certification by Sergei Guk
Application Initialization (Magento Certified Developer Exam)

Our another Magento certification-dedicated article describes the steps for application initialization.

Magento initialization process starts in index.php (with the exception of Magento integrated with some other sites or CMS).

Let’s take a look at the code of this file. Magento developers made their comments using multi line comment and PHPDoc style comments, so for my own comments I’ll use one line style (so called c++ style) comments. (more…)

Internationalization (Magento Certified Developer Exam)

November 23, 2012 / Posted in Certification by Sergei Guk
Internationalization (Magento Certified Developer Exam)

We continue posting Magento certification-dedicated articles in our blog. This time we will describe how to internationalize your Magento site.

Magento can manage multiple stores in a single installation. There are three layers in this hierarchy – websites, stores and store views.

The top level is Website. It’s made up of one or multiple stores. They in turn are made up of one or multiple store views. Stores have the same customers, orders and shopping carts. They are set of store views and the main idea of stores is to group store views in a website.

Most of Magento installations have only one website with one store and only one store view. As store Views are the actual store instances, they are typically used for internationalization purposes, i.e. translation of your store into different languages. Therefore, if you need to display your store in multiple languages, for example English, French and German, you should create the store once and then create three different store views for this particular store. (more…)

Front Controller Pattern

October 24, 2012 / Posted in Certification by Aleksander Tretjak
Front Controller Pattern

Magento uses the Front Controller pattern for the following purposes:

  • Receiving and processing browser data, transferring it to other system elements;
  • Defining controller and proper action to perform using routes;
  • Displaying browser-requested data using blocks, templates and model data. (more…)