Phonix Posted March 8, 2009 Share Posted March 8, 2009 (edited) 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: <?php define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = $_LANG['clientareatitle']; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="COD4.php">COD4</a>'; initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav); 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"; outputClientArea($templatefile); ?> 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 March 8, 2009 by Phonix 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted March 8, 2009 Share Posted March 8, 2009 #1 where did you set $value ? did you *read* the comment ? #2 you say "Then I created another file named COD4.tpl, left it blank" so why would you expect the page o show anything other than a blank ? 0 Quote Link to comment Share on other sites More sharing options...
Phonix Posted March 8, 2009 Author Share Posted March 8, 2009 Found the answer. And by blank I meant a blank white page with no header.tpl or anything. Thanks 0 Quote Link to comment Share on other sites More sharing options...
jasonhk Posted March 8, 2009 Share Posted March 8, 2009 Phonix: Use $display_errors="on"; in your configuration file to see any errors that occur, you'll see the error instead of a blank page. 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.