Skip to content

eyemagine/magento-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

magento-integration

Include Magento blocks and CMS blocks in any PHP application.

Example

Joomla and Magento

Joomla and Magento

Installation

  • Include magento-integration.php in your application.
  • Initialize the integration and pass the path to Magento bootstrap file.

Example:

<?php

include 'magento-integration.php';
MI::init('/path/to/magento/app/Mage.php');

This only needs to be done once.

Usage

These methods can be used anywhere in the PHP application.

Layout Blocks

Blocks in Magento's layout can be retrieved by passing the layout name (header, footer, left, etc).

echo MI::getBlock('header');

CMS Static Blocks

CMS blocks added via Magento admin can also be retrieved.

echo MI::getStaticBlock('home-slider');

Inspired by Magento WordPress Integration

About

Include Magento blocks in a PHP application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages