PHP Classes

File: ex6.p

Recommend this page to a friend!
  Classes of barnabás debreceni  >  XTemplate  >  ex6.p  >  Download  
File: ex6.p
Role: ???
Content type: text/plain
Description: example 6 (demonstrates SetNullBlock)
Class: XTemplate
Template engine for PHP
Author: By
Last change:
Date: 17 years ago
Size: 879 bytes


Class file image Download

		example 6
		demonstrates nullblocks

	require "xtpl.p";

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

	$xtpl->assign(INTRO_TEXT,"what happens if we don't parse the subblocks?");
	$xtpl->assign(INTRO_TEXT,"what happens if we parse them? :)");

	$xtpl->assign(INTRO_TEXT,"ok.. SetNullBlock(\"block not parsed!\") coming");
	$xtpl->SetNullBlock("block not parsed!");

	$xtpl->assign(INTRO_TEXT,"ok.. custom nullblocks.. SetNullBlock(\"subblock1 not parsed!\",\"main.block.subblock1\")");
	$xtpl->SetNullBlock("block not parsed!");
	$xtpl->SetNullBlock("subblock1 not parsed!","main.block.subblock1");