Source for file ex7.php

Documentation is available at ex7.php

  1. <?php
  2.  
  3. /**
  4. * example 7
  5. * demonstrates file includes
  6. *
  7. * $Id: fsource_XTemplate__ex7.php.html,v 1.3 2005/04/11 10:00:49 cocomp Exp $
  8. */
  9.  
  10. include_once('./xtemplate.class.php');
  11.  
  12. $xtpl = new XTemplate('ex7.xtpl');
  13.  
  14. $xtpl->assign('FILENAME', 'ex7-inc.xtpl');
  15. // Language is set to English
  16. $xtpl->assign_file('LANGUAGE', 'ex7-inc-eng.xtpl');
  17. // Uncomment the line below to set language to German
  18. //$xtpl->assign_file('LANGUAGE', 'ex7-inc-de.xtpl');
  19. $xtpl->rparse('main.inc');
  20.  
  21. $xtpl->parse('main');
  22. $xtpl->out('main');
  23.  
  24. /*
  25. $Log: fsource_XTemplate__ex7.php.html,v $
  26. Revision 1.3 2005/04/11 10:00:49 cocomp
  27. Added restart() method sf:641407 feature request
  28. Revision 1.2 2005/04/07 12:02:52 cocomp
  29. MAJOR UPDATE: E_ALL safe, better internal documentation, code readability ++, many bugfixes and new features - considered stable
  30. Revision 1.1 2001/07/11 10:49:25 cranx
  31. *** empty log message ***
  32. Revision 1.2 2001/03/26 23:25:02 cranx
  33. added keyword expansion to be more clear
  34. */
  35.  
  36. ?>

Documentation generated on Mon, 11 Apr 2005 10:59:10 +0100 by phpDocumentor 1.3.0RC3