Getting A Database Adapter (Read or Write)

Updated . Posted . Visible to the public.

To read:

Mage::getSingleton('core/resource')->getConnection('core_read');

To write:

Mage::getSingleton('core/resource')->getConnection('core_write');
Mike Whitby
Last edit
Mike Whitby
Keywords
db, mysql, connection
Posted by Mike Whitby to Magento (2012-03-07 16:51)