I asked this on Github, but I think it may be better for here. I'm not sure. I didn't get a response, and I didn't know if it was because I was in the wrong place or because everyone was busy (I am not complaining at all.)I'll be glad to update Github, if I can get the answer. I am trying to not reverse engineer plugins, if this is an easy answer.I have this,namespace controller;
require_once(STAFFINC_DIR.'header.inc.php');
require_once(STAFFINC_DIR.'staff.inc.php');
class MyController {
public function searchAction(){
require('myplugin.html');
}
}
require_once(STAFFINC_DIR.'footer.inc.php');
But I get,
Fatal error: Call to a member function getError() on a non-object in C:\osticket\include\staff\header.inc.php on line 58How do I make a page in my plugin show up between header.inc.php and footer.inc.php? The plugin works and is enabled and works, but the page is not totally integrated without these includes. Thanks for any help.I am using dispatcher.php in scp if that matters.The examples I've looked at use twig, so I can't use it.