Page 1 of 1

Custom open cart module install - Fatal error

Posted: Sun Dec 27, 2015 4:57 am
by latheesan
I am trying to write a custom module that will hook into post.order.history.add event and do a custom action. This is my module structure & code so far:

admin\controller\module\mysite.php
-> http://pastebin.com/qYUf3T42

admin\language\english\module\mysite.php
-> http://pastebin.com/NF5Qx3DZ

admin\view\template\module\mysite.tpl
-> http://pastebin.com/aZc61NSP

When I install the module (I am developing in WAMP), I get the following error:
Fatal error: Call to a member function get() on a non-object in H:\wamp\www\mysite.local\system\engine\controller.php on line 10
Image

Any ideas what this error is about? When I refresh the page, it does say the module is installed, when I try to uninstall it, I get the same error.

Sorry if I have posted in the wrong section.