Hereby, I working to integrating Header/Footer section outside Magento using this sample code:
$mageFilename = 'app/Mage.php';
echo $mageFilename;
require_once $mageFilename;
#Mage::setIsDeveloperMode(true);
#ini_set('display_errors', 1);
umask(0);
Mage::app()->loadArea('frontend');
$layout = Mage::getSingleton('core/layout');
//load default xml layout handle and generate blocks
$layout->getUpdate()->load('default');
$layout->generateXml()->generateBlocks();
//get the loaded head and header blocks and output
$headBlock = $layout->getBlock('head');
$headerBlock = $layout->getBlock('header');
echo $headBlock->toHtml() . $headerBlock->toHtml();..
reset of your code
When i get all header/footer content include site Logo and etc.But it doesn't get Login and Logout from that Header section. Here i Sample Headers
and sample Header for Magento Website
How to call Login And logout detail outside magento.Kindly advise me any other issues?
Best Answer
Links to add Login and Logout links are in the
<customer_logged_in>
and<customer_logged_out>
handles, respectively.Add them to your script with the following code: