Get magento folder or directory path seemingly

Tuesday, 8. November 2011

Here are some snippets for getting specific Magento folder or directory path from templates or code files.

Magento Base Folder or Directory

echo Mage::getBaseDir('base');

Magento App Folder or Directory

echo Mage::getBaseDir('app');

Magento Media Folder or Directory

echo Mage::getBaseDir('media');

Magento JS Folder or Directory

echo Mage::getBaseDir('js');

…..

Leave a Reply

You must be logged in to post a comment.