MattCNS Posted November 8, 2011 Share Posted November 8, 2011 I'd like to call some custom PHP before each page is loaded in WHMCS. Is there a file that is loaded for every page that I can add a hook to? For example, is init.php always called? 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted November 8, 2011 Share Posted November 8, 2011 header.tpl and footer.tpl and use similar to {php} include ('../inc/menu_box-top.php'); {/php} 0 Quote Link to comment Share on other sites More sharing options...
MattCNS Posted November 8, 2011 Author Share Posted November 8, 2011 Thanks for the suggestion wwesn. Do you know how early in the execution order the template files are called? Ideally I'd like to call my script before there is any DB access. 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.