Saqibulhassan Posted October 11, 2017 Share Posted October 11, 2017 sir please help me to how to create custom page in whmcs. Link to comment Share on other sites More sharing options...
cdeese8 Posted October 12, 2017 Share Posted October 12, 2017 When you get a moment, browse over the developer docs https://developers.whmcs.com/advanced/creating-pages/ https://docs.whmcs.com/Creating_Pages Link to comment Share on other sites More sharing options...
wtools Posted October 18, 2017 Share Posted October 18, 2017 Here is a sample custom php file (test.php), you can upload it to the root folder of the whmcs. You can extend the simple file to do anything. Sky is your limit test.php <?php use Illuminate\Database\Capsule\Manager as Capsule; define("CLIENTAREA", true); require("init.php"); $ca = new WHMCS_ClientArea(); $ca->setPageTitle("My test page); $ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname')); $ca->addToBreadCrumb('test.php', 'Test'); $ca->initPage(); $ca->assign("response", $an_array); $ca->setTemplate('test'); $ca->output(); test.tpl (place in the document root itself) {if $response} Test content {/if} Link to comment Share on other sites More sharing options...
Recommended Posts