WillP Posted January 5, 2012 Share Posted January 5, 2012 I understand how to create pages within WHMCS from the sample code given in the documentation at http://docs.whmcs.com/Creating_Pages. The first line of code after the opening php tag is define("CLIENTAREA",true); . Could someone tell me exactly what this is doing. I mean, apart from creating a constant and setting its value. What is the constant CLIENTAREA telling the WHMCS system? I have tried setting its value to false and also commenting out the line, but it has no apparent effect on the test pages that I have created Thank you. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 6, 2012 Share Posted January 6, 2012 Do a {debug} in your template file with and without that constant set. I'm willing to bet you have more smarty variables available with it set. 0 Quote Link to comment Share on other sites More sharing options...
WillP Posted January 6, 2012 Author Share Posted January 6, 2012 Do a {debug} in your template file with and without that constant set. I'm willing to bet you have more smarty variables available with it set. Thanks Frank. Good tip. It seems strange to me, however, that the next line in the sample code //define("FORCESSL",true); # Uncomment to force the page to use https:// is for creating a page forced to use SSL is commented when it is quite obvious what it does, but a line that isn't obvious to anyone not completely familiar with WHMCS and uses a constant called CLIENTAREA is not documented anywhere that I can find. 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.