My Magento version is My config.xml is



My Model in Models/Slider.php is

class Transformer_HomeSlider_Model_Slider extends Mage_Core_Model_Abstract
    public function _construct()

and resource file Models/Resource/Slider.php is

class Transformer_HomeSlier_Model_Resource_Slider extends Mage_Core_Model_Resource_Db_Abstract
    public function _construct()

My database setup script perfectly working when module run i.e table created in database. But When I want to save data on database it says

Fatal error: Call to a member function beginTransaction() on boolean in C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Abstract.php on line 313

I Call Model by

$slider_model = Mage::getModel('homeslider/slider');

My controller function is

public function saveAction()
        $slider_model = Mage::getModel('homeslider/slider');
        if ($data = $this->getRequest()->getPost()) {
            try {
                    ->addSuccess($this->__("Your Slider has been saved"));
            } catch (Exception $e) {

I var_dump($data) where I get form-data that is ok. Where is my problem? Thank you.

  • can you show the rest of the code where you save the slider? Commented Aug 9, 2017 at 17:15
  • I update my post with controller save function. Commented Aug 9, 2017 at 17:20

1 Answer 1


You have a typo in your resource class name:

Transformer_HomeSlier_Model_Resource_Slider should be Transformer_HomeSlider_Model_Resource_Slider

  • Thank you very much. Sorry for my Mistake. Everything is fine now. Commented Aug 9, 2017 at 17:31

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.