Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Autoloading troubles
 
Ree
Jr. Member
 
Total Posts:  30
Joined:  2007-09-26
 

Hello,

I’m having troubles with class loading.

The class I want to autoload is MyPrefix_Shipping_Model_Carrier_TimeBased_Source_CustomerGroups and it’s located in the file /app/code/local/MyPrefix/Shipping/Model/Carrier/TimeBased/Source/CustomerGroups.php.

I have this defined in one of the <source_model> tags in system.xml:

<source_model>MyPrefix_Shipping/Carrier_TimeBased_Source_CustomerGroups</source_model>

Magento tries to include Mage\MyPrefix\Shipping\Model\Carrier\TimeBased\Source\CustomerGroups.php which is wrong. How do I get rid of Mage at the begining? A different XML tag maybe?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top