Jump to content

Creating pages


Recommended Posts

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


. 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated