Login   Register  
PHP Classes
elePHPant
Icontem

File: ex7.p

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of barnabás debreceni  >  XTemplate  >  ex7.p  >  Download  
File: ex7.p
Role: ???
Content type: text/plain
Description: example 7 (demonstrates includes)
Class: XTemplate
Template engine for PHP
Author: By
Last change:
Date: 14 years ago
Size: 245 bytes
 

Contents

Class file image Download
<?

	/* 
		example 7
		demonstrates file includes
	*/

	require "xtpl.p";

	$xtpl=new XTemplate ("ex7.xtpl");

	$xtpl->assign(FILENAME,"ex7-inc.xtpl");
	$xtpl->rparse("main.inc");

	$xtpl->parse("main");
	$xtpl->out("main");

?>