0

Let's take the Contacts module inside my Magento 1.7 installation.

$ pwd
/var/www/vhosts/myproject/magento-1.7.0.2/app/code/core/Mage/Contacts

I know Contacts is the module, but is Mage the package, or the vendor? Then what's core? I'll heard them being described as 'code pools', but still not very clear.

And how does this relate to namespacing? (if it's relevant at all?)

1 Answer 1

3

Mage is the vendor. Core is the code pool that all core/default functionality goes into. Third party modules go in the community code pool and work you create should go in the local code pool.

So if you made a module it would be in app/code/local/dayuloli/modulename/.

2
  • So there's no concept of a 'package'?
    – dayuloli
    Commented May 7, 2015 at 10:29
  • I guess you could consider the modulename the package. So one vendor could have multiple packages like what you see inside the mage directory Commented May 7, 2015 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.