Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:10:50+00:00 2026-06-01T15:10:50+00:00

There seems to be two styles of folder structure in the core Magento when

  • 0

There seems to be two styles of folder structure in the core Magento when it comes to resources. There are quite a lot using the mysql4 folder and other simple using Resource folder.

I.e. install script would live here: Mycompany_Mymodule_Model_Resource_Setup.

Is there a reason for this, legacy or otherwise – or is this simply a coding style between different core developers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:10:52+00:00Added an answer on June 1, 2026 at 3:10 pm

    First: Magento’s folder structure exists only because of its autoloader’s implementation. If you try to derive too much meaning from where a file is placed in Magento you’ll go mad, and different modules seem to follow different conventions. The autoloader will look for

    Mage_Core_Model_Foo_Bar
    

    in

    Mage/Core/Model/Foo/Bar.php
    

    So I’ll be talking about naming conventions below, which will indirectly address why a file is in a particular folder.

    Originally all database resource were named with the Mysql4 convention. I’ve talked to a few of the original developers, and the intention was to denote that the resource was for the then “standard” Mysql 4 database. If a resource used a specific feature of say, Mysql 5, then they’d have used a Mysql5 convention.

    As Magento Inc. went through the usual startup churn and other developers took over where the original developers left off, the thinking changed on this. The Magento 1.6 release, which laid the groundwork for Enterprise Edition’s support of multiple RDBMS, altered how these resources worked and were named.

    Backwards compatibility was maintained, but most of the old Mysql4 resources were renamed to use the generic Resource, and a new method for multiple RDBMS support was introduced.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that when using two jquery UI droppables that touch each other, the
When invoking a WCF service asynchronous there seems to be two ways it can
It seems that these two operators are pretty much the same - is there
It seems to me that there are two scenarios in which to use JOINs:
Starting with iOS 5, there are two notification styles: banner and alert (the old
There seems to be two major conventions for organizing project files and then many
As far as I'm aware there are two main styles of permissions systems out
Reading some Verilog code, there seem to be two ways of defining arguments in
There are two things that seem to be popular nowadays and I was wondering
There seems to be a similar question to this on here but with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.