Difference between revisions of "Develdoc:Help"

From PMWH2 - PHPMyWebHosting's official wiki
Jump to: navigation, search
 
(No difference)

Latest revision as of 17:55, 11 December 2012

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
  2
  3  $he = new Smarty();
  4
  5  $he->assign("HELP_HEADING",_YOUR_HELP_HEADING);
  6  $he->assign("HELP_TEXT",_YOUR_HELP_TEXT);
  7
  8  $help = $he->fetch("help/$act/$what.tpl");
  9
 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"