php - Magento adding install object -


I am creating a module that defines some additional options for the category in Magento after this tutorial to get you started Is:

I created a modules module built on with module builder.

I have defined my class Infoweb / Margins / Model / Resource / Eav / Mysql4 / in / Setup.php (with capital) and in my class:

  Class Infoweb_Margins_Resource_Eav_Mysql4_Setup Enhances Mage_Eav_Model_Entity_Setup {}  

I also created this line in my config.php (rest due to this skeleton module):

  & lt; Class & gt; Infoweb_Margins_Resource_Ev_Mysql4_Setup & lt; / Class & gt;  

Now when someone is trying to load a page, there is no serious error on this topic for the Magenta searches that the class was not found ... error: serious Error: Class 'Infoweb_Margins_Resource_Eav_Mysql4_Setup' /home/users/A000456/xxx/xxx/app/code/core/Mage/Core/Model/Resource/Setup.php not found on line 160

Where is the problem lying on the problem?

Magento complains that this' I do not know your class

  Infobabrigans_ Risors_iv_mjkul 4 setup  

this is actually a semi-good news in fact a class with that Magento prefix Infoweb_Margins Looking for means that you have your XML setup correctly

The problem is to handle the class is the name of your class Magento auto loader only knows * how to form

  Packagename_Modulename_Model_ * Packagename_Modulename_Helper_ * Packagename_Modulename_Block_ *  < / Pre> 

Your class name is

  Infoweb_Margins_Resource_ *  

which do not know what to do with Magento.

If you have a file Setup.php name

  Infoweb_Margins_Model_Resource_Eav_Mysql4_Setup ;      

Change the definition of XML and class and you should set

* it may be semi-Fab, I have not seen __otoloder of Magento in a while


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -