I want create new table out of magento, in interface, without inheriting setup class. I tried to get resource model of setup. This didn’t work:
require_once 'app/Mage.php';
Mage::init();
$setup = Mage::getResourceModel('catalog/setup');
I was also thinking about Mage::getResourceModel('core/resource_setup') but i have an error: Fatal error: Call to a member function startSetup() on a non-object in C:\xampp\
htdocs\LPP_MAGENTO_EE_CUSTOM\app\code\core\Mage\Core\Model\Resource\Setup.php on
line 944
Do you have any idea?
(I saw this question but it doesn’t work for me)
I did it with
$setup = Mage::getModel('eav/entity_setup', 'core_setup')example for create new attribute for Category within my code: