I created my first WHM plugin today (in PHP) which fundementally works perfectly, however, the plugin does not appear to load into the WHM wrapper. I have used the sample PHP code that is is supposed to load the header / footer but only the footer appears to work. There is simply no header included, only my HTML and then a couple of additional divs which I presume is related to the footer.
What am I doing wrong? The require_once definately loads as the footer output is displayed, just not the header.
<?php
require_once('/usr/local/cpanel/php/WHM.php');
WHM::header('My Plugin Header', 0, 0);
?>
// MY HTML TEMPLATE DISPLAYS HERE
<?php
WHM::footer();
?>
What am I doing wrong? The require_once definately loads as the footer output is displayed, just not the header.
<?php
require_once('/usr/local/cpanel/php/WHM.php');
WHM::header('My Plugin Header', 0, 0);
?>
// MY HTML TEMPLATE DISPLAYS HERE
<?php
WHM::footer();
?>