Magento Model源模型 - 在非对象错误上调用成员函数toOptionArray()

Ovi*_*diu 2 magento

我正在尝试在Magento中的自定义模块上设置source_model.module在system.xml中的本地/ Bitstream/Selfawb我有这个:

                        <email_type translate="label">
                        <label>Email Type</label>
                        <frontend_type>multiselect</frontend_type>
                        <source_model>bitstream/source_emailType</source_model>
                        <sort_order>3</sort_order>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                    </email_type>
Run Code Online (Sandbox Code Playgroud)

EmailType.php位于/local/Bitstream/Selfawb/Model/EmailType.php中,其代码如下:

class Bitstream_Selfawb_Model_Source_EmailType{

public function toOptionArray(){
    return array(
        array('value'=>'mobile', 'label'=>Mage::helper('mailchimp')->__('MOBILE')),
    );
}
Run Code Online (Sandbox Code Playgroud)

}

问题是我在浏览器中遇到此错误:致命错误:在非对象上调用成员函数toOptionArray()

我在这做错了什么?

clo*_*eek 5

答案是路径/local/Bitstream/Selfawb/Model/EmailType.php应该有一个"源".
/local/Bitstream/Selfawb/Model/Source/EmailType.php