Jump to content

Problem Creating New Pages


Recommended Posts

I'm positive I've read the tutorial correctly on how to create pages, but everything just shows up white when I try to access COD4.php


Here's what I did:


I made a COD4.php file, saved it in my base whmcs directory and inside it I put this:





$pagetitle = $_LANG['clientareatitle'];
$pageicon = "images/support/clientarea.gif";
$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="COD4.php">COD4</a>'; 


if ($_SESSION['uid']) {
 # User is Logged In - put any code you like here

# To assign variables in Smarty use the following syntax.
# This can then be used as {$variablename} in the template

$smartyvalues["COD4"] = $value; 

# Define the template filename to be used without the .tpl extension

$templatefile = "COD4"; 




Then I created another file named COD4.tpl, left it blank, and put it in my base template directory.


But like I said, its a blank page when I try to access it, excludiing my header and everything else.


Any insight would be greatly appreciated

Edited by Phonix
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