top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Can we create our own codePool in Magento?

+3 votes
84 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...