0

I am using magento 1.9 in ubuntu and the code folder does not consist of local .

The Mage.php consist of Mage.php -

/**
 * Set include path
 */
$paths = array();
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'local';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'community';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'core';
$paths[] = BP . DS . 'lib';

but after the command : cd /var/www/html/magento/app/code/ : ls it only shows --> : community core

I am stuck in step one http://www.codexpedia.com/magento/create-read-update-and-delete-with-magento-database/ Please Help

7
  • 2
    magento does not provide it by default. you need to create it if you need it Commented May 3, 2017 at 11:16
  • can u help me with it ??
    – Anuja
    Commented May 3, 2017 at 11:23
  • How to create local in ubuntu??
    – Anuja
    Commented May 3, 2017 at 11:23
  • 3
    create folder "local" under app/ code :) Commented May 3, 2017 at 11:27
  • But how to enable it for operation ?? because i tried to save and i got this message : Operation not permitted
    – Anuja
    Commented May 3, 2017 at 11:38

1 Answer 1

1

By default magento doesn't have local codepool. This need to be created if we are doing some project level customization by using custom module.

For extensions also its not recommended to use local codepool instead extension developer should use community codepool only

Some more important information:

$paths = array();
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'local';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'community';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'core';
$paths[] = BP . DS . 'lib';

Above code says to Magento:

"Look for any specific file in local first, then look inside community then look inside core then last look inside lib"

Because of this only we can override core files just by putting in local code pool using the same path.

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