liip/liip-magento-shared

Name: liip-magento-shared

Owner: Liip

Description: Liip Magento Shared

Created: 2012-11-15 19:16:48.0

Updated: 2015-10-07 19:19:41.0

Pushed: 2015-08-19 07:54:10.0

Homepage: null

Size: 305

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

A Magento module containing recurring methods we have been using in most projects.

Features

Installation

Add repository to composer.json

{
    "repositories": [
        {
          "type": "composer",
          "url": "http://packages.firegento.com"
        }
    ],
    "require": {
        "liip/liip-magento-shared": "1.*",
    },
    "extra":{
        "magento-root-dir": "./"
    }
}

Install package through composer

$ ./composer.phar install

Usage

The module renames its Magento namespace as liip. Therefore, you access models and helpers as Mage::getModel('liip/connection_curl') or Mage::helper('liip').

Use the Setup class in your module

In your module's config.xml, specify the new setup class

<global>
    <resources>
        <mymodule_setup>
            <setup>
                <module>Liip_Shared</module>
                <class>Liip_Shared_Model_Resource_Setup</class>
            </setup>
        </mymodule_setup>
    </resources>
</global>

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.