XiTemplate Home Page XiTemplate
[ class tree: XiTemplate ] [ index: XiTemplate ] [ all elements ]

Example usage of out()

  1. <?php
  2. /*include the class*/
  3. include_once('../class.XiTemplate.php');
  4.  
  5. /*instantiate the class and pass the path to your html template file*/
  6. $xitpl = new XiTemplate('templates/out.tpl');
  7.  
  8. /*assign a value to a template variable.*\
  9. /*In this example {NAME} will be replaced with "XiTemplate"*/
  10. $xitpl->assign('NAME', 'XiTemplate');
  11.  
  12. /*parse the "main" block of the template (the whole page)*/
  13. $xitpl->parse('main');
  14.  
  15. /*send the final page out to the browser*/
  16. $xitpl->out('main');
  17. ?>

Documentation generated on Fri, 20 Aug 2004 10:57:45 -0500 by phpDocumentor 1.3.0RC3