Magento: include and app/code/core from another location(above webroot) -


i looking way include magentos app/code/core above webroot.

it no problem /lib, add path @ end of include path in php.ini

something .:/existing/path:/home/yourdomain/magento/lib

for demo-stores or development servers means saving 30mb or more 3000 files per installation.

therefore love same app/code/core 26mb , more 5000 files per installation.

did open thread here http://www.magentocommerce.com/boards/viewthread/457181/

any appreciated.

one way this...

modify app/mage.php find following lines add paths check when include files...

$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';  $apppath = implode(ps, $paths); set_include_path($apppath . ps . mage::registry('original_include_path')); 

you change bp wherever move code, or change these entirely.

if move entire app directory, change index.php file in web base directory. you'll see line

$magefilename = magento_root . '/app/mage.php'; 

you'll want change wherever moved it. mage.php bootstraps whole operation.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -