Reputation: 1659
I am following this tutorial, trying to learn to make Magento extensions, however, in step 4, I get the following error:
Fatal error: Call to a member function setOrder() on a non-object in C:\xampp\htdocs\magento\app\code\local\Pfay\Test\Block\Monblock.php on line 7
Am I doing something wrong? I am working on Magento 1.6.1
Hosh
PS: On a side note, anyone know a good tutorial on creation extensions?
Upvotes: 0
Views: 1160
Reputation: 23205
It looks like your resource collection isn't found. That tutorial has incorrect xpath for the models declaration - it's inside the <global />
node, not under the root <config />
node. The tutorial and its explanation are not very good. An excellent place to start is Alan Storm's Magento for Developers articles in the Magento Knowledgebase. Start here: http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-1-introduction-to-magento
Upvotes: 0