Skip to content

Zrecommerce developer guide

aalbino edited this page Nov 22, 2010 · 8 revisions

ZRECommerce Developer Guide

Please read up on the Zend Framework coding standard, as it is essential in order to keep all code readable.

You should probably familiarize yourself with at least the basics of PHP 5 OOP features as well.

The /application/ directory

  • /application/admin - This is the administration module of the MVC setup. Contains administrative functionality.
  • /application/default - This is the default module of this web application. All public facing controllers and views go here.
  • /application/cache - This is the default cache directory. You can set up Zend_Cache based components to use this directory as a cache directory. DONT COMMIT ANYTHING HERE.
  • /application/settings - Contains configuration specific files, such as settings.xml, the most recent SQL database structure, application.ini, and more.

The /languages/ directory

The 'Zend_Translate' object is available at run-time by simply retrieving it out using Zend_Registry::get('Zend_Translate'). It is set up by the Zre_Locale library class upon application initialization.

The /library/ directory:

  • /library/Cart - These classes handle cart functionality.
  • /library/Data - Contains the abstract classes that represent a CRUD interface to our data, along with data set specific helper methods.
  • /library/Checkout - These classes handle the checkout functionality.
  • /library/Plugin - These classes provide plug-in functionality, such as listing products within articles, or over-loading the meta tags on an article page, etc. Automatically run by inserting curly-bracket mark-up into an article description in the admin dashboard.
  • /library/Zre - Contains ZRECommerce specific functionality, such as user authentication, ACL (access control lists), Locale and Translation features, Lucene Search implementation, Config file loader, and more.

Links

Next: ZRECommerce Tutorials

Clone this wiki locally