adv1453 Posted October 5, 2019 Share Posted October 5, 2019 (edited) Hi, I want to create a custom page but it gives such an error. How can I solve it? WHMCS Version: 7.8.3 Page Name: alan-adi-kayit.tpl Edited October 5, 2019 by adv1453 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 5, 2019 Share Posted October 5, 2019 6 hours ago, adv1453 said: I want to create a custom page but it gives such an error. How can I solve it? I can't see anything particular wrong with the context code - though if you don't need to show the announcement sidebars on that page, you don't need to include them in the php there's nothing to stop you using a .php file that only contains the bare minimum... <?php use WHMCS\ClientArea; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->setPageTitle('Custom Page'); $ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname')); $ca->addToBreadCrumb('alan-adi-kayit.php', 'Alan'); $ca->initPage(); $ca->setTemplate('alan-adi-kayit'); $ca->output(); that should work as is, but if you then want to add context menus or additional code, they should work too. 1 Quote Link to comment Share on other sites More sharing options...
adv1453 Posted October 5, 2019 Author Share Posted October 5, 2019 9 hours ago, brian! said: I can't see anything particular wrong with the context code - though if you don't need to show the announcement sidebars on that page, you don't need to include them in the php there's nothing to stop you using a .php file that only contains the bare minimum... <?php use WHMCS\ClientArea; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->setPageTitle('Custom Page'); $ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname')); $ca->addToBreadCrumb('alan-adi-kayit.php', 'Alan'); $ca->initPage(); $ca->setTemplate('alan-adi-kayit'); $ca->output(); that should work as is, but if you then want to add context menus or additional code, they should work too. Thanks, is solved. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.