top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can we create our own codePool in Magento?

+3 votes
399 views
Can we create our own codePool in Magento?
posted Dec 29, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

This is easy to create custom code pool in magento. Just follow the following step:

Open Mage.php that is located in directory app/Mage.php
Find include paths that was added as

$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';

Edit this section to:

$paths = array();

$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'custom';
$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';
answer Jan 22, 2016 by Deepak Negi
...