Getting A Database Adapter (Read or Write)

Posted About 12 years ago. 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
Over 9 years ago
Mike Whitby
Keywords
db, mysql, connection
Posted by Mike Whitby to Magento (2012-03-07 16:51)