I have created custom module and model but could not insert the data into database using the model please help how to do it


<?xml version="1.0"?>


model resource code

 class Stallioni_Vendorpage_Model_Resource_Vendorpage extends Mage_Core_Model_Resource_Db_Abstract
    protected function _construct()
        //$this->_blockGroup = 'vendorpage';


1 Answer 1


You're missing the closing version tag in your config XML, but that might just be a typo when posting it here.

Your model and resource model namespace should be the same, only the resource model adds _resource to the end.

Currently your model alias is:


You should change it to:


This way it will match the entity you're registering in your resource model.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.