From PMWH2 - PHPMyWebHosting's official wiki
Revision as of 17:55, 11 December 2012 by Chris (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To give the users of PHPMyWebHosting we want to provide some online help. There is the directory called "help" which has the same structure as above: "help/$act/$what.php"

In your "help/$act/$what.php" you have to create the following code:

  1  <?php
  3  $he = new Smarty();
  5  $he->assign("HELP_HEADING",_YOUR_HELP_HEADING);
  6  $he->assign("HELP_TEXT",_YOUR_HELP_TEXT);
  8  $help = $he->fetch("help/$act/$what.tpl");
 10  ?>

you may assign more than these to variables and also use html code in your "help/$act/$what.tpl". But please add help for the users.

If no help file is found the following text is display: "No help available"