I want to create new table from Magenta, without inheriting the setup class, I tried to get the processing model of setup This does not work:
need_once 'app / Mage.php'; Dana :: init (); $ Setup = Dana :: getResourceModel ('list / setup'); I was also thinking about Dana :: getResourceModel ('core / resource_setup') , but I have an error: serious error : Call from a member function to startSetup () on a non-object at C: \ xampp \ htdocs \ LPP_MAGENTO_EE_CUSTOM \ app \ code \ core \ Mage \ core \ model \ resource \ Setup.php line 944 Do you have any ideas? (I saw but it does not work for me)
I have it set to $ setup = Mage :: getModel ('eav / entity_setup', 'core_setup') for example to create a new attribute for the category in my code: need_once 'app / Mage.php '; Dana :: init (); $ Setup = Dana :: MillModel ('eav / entity_setup', 'core_setup'); $ Setup - & gt; Add add ('catalog_mark', 'xxx', array (...));
Comments
Post a Comment