How To Get Table Name in Magento
Its very simple to get table name in magento whose name are defined in config.xml file
Suppose you need to get table name in sales order module
$resource = Mage::getSingleton( 'core/resource' ); $tableName = $resource ->getTableName( 'sales/order' );
Advertisements
Add Comment
📖 Read More
- 1. How to get customer data by id in magento
- 2. Magento create admin user mysql query
- 3. Magento Error when flushing or deleting cache in magento 1.9 | magento error after flushing cache
- 4. Base table or view already exists: 1050 Table 'core_email_queue' already exists, query was: CREATE TABLE `core_email_queue` in magento 1.9
- 5. Could not resolve host: magento-community
- 6. Magento core_email_template setup | Base table or view not found: 1146 Table 'core_email_template' doesn't exist
- 7. Increase Decrease Quantity Button
- 8. Magento get current controller ,current module , current action and route name
- 9. Magento Custom Collection Sorting | Magento sort collection Item
- 10. can't retrieve entity config magento