I’m trying to create a custom backend model that handles a file upload and has the file’s contents as its “value.”
I have this in the appropriate section of my module’s system.xml:
<keyfile translate="label"> <label>Key File</label> <frontend_type>image</frontend_type> <!-- I know this one is wrong --> <backend_model>mymodule/backend_keyfile</backend_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>0</show_in_store> </keyfile >
The class called “Myprefix_Mymodule_Model_Backend_KeyFile” is located in “app/code/local/Myprefix/Mymodule/Model/Backend/KeyFile.php” yet when I try to visit the associated configuration page, I always get this error: <b>Invalid config field backend model: mymodule/backend_keyfile</b>.
The module’s other models load fine, and the other configuration settings work normally. Please advise.