Rules For Magento Developers.

The Rules are design by the Magento Commerce. So if you follow the below rules then it will help to developing a magento Application.

  • Rule 1: Do NOT edit the files in the base package
  • Rule 2: Do not create a custom theme inside of the base package
  • Rule 3: Create your customized themes inside of their own design package. Make directories atapp/design/frontend/your_custom_package/default andskin/frontend/your_custom_package/default and build your custom theme there.
  • Rule 4: Do not copy all the files from base/default into your custom package. Copy only the files that you modify.
  • Rule 5: Do not create your custom theme inside of the default/default directories, even though there are old instructions that may tell you to do so. This approach was never recommended.
  • Rule 6: Do not copy all the files from default/default into your custom package as a starting point, even though there are old instructions that may tell you to do so. This approach has been deprecated.
  • Exception to Rule 6: Because base/default does not contain full CSS files, you may want to copy the CSS from one of the demo themes into your new custom themes as a starting point. Many designers and developers prefer to start with nothing and build their CSS from scratch though, so you can do this too. In general, if you do copy over CSS and image files to your new custom package, the blank theme (default/blank) provides the leanest CSS.
  • 2nd Exception to Rule 6: Enterprise customers for now DO need to copy the files from enterprise/default into their custom package as a starting point. In a future release, the Enterprise files will be folded into the base/default directories but they are not in EEv1.8.
  • Rule 7: Break the rules if you have to, just do so knowingly.

All rules are taken from the 

http://www.magentocommerce.com/knowledge-base/entry/magentos-theme-hierarchy

Advertisements

2 thoughts on “Rules For Magento Developers.

  1. Thanks for sharing this post because it is really good information for me. Because I am taking training for Magento development. And i wanted to know about there rules.

    1. @ Orton : Thanks a lot for your comment, 🙂

      Ya I am also learn Magento my self learning.

      have you any confusion then let me know.

Leave your comments

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s