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…)

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…)