Home | Online Examples | Documentation | Forum | Page of Project | Download

TPLN Manual

Functions

Open
DirectIOWrite
DirectIOOutput
DirectIOSave
DefineTemplate
SetTemplate
ChangeTemplate
ParseGlobals
Parse
FastParse
LoadArrayInBloc
Loop
EraseItem
EraseBloc
GetFile
ParseBloc
ReloadBlocVars
IncludeFile
GetBlocInFile
Write
Output
SaveTemplate
ItemExists
BlocExists
#include Command
Automatic parsed variable
SetChrono

 

EraseBloc

void EraseBloc( string blocname )

The EraseBloc() function serves to erase a bloc. If bloc is unic the pazrser will delete bloc directly in template.


<?php

....

for(
$i=0, $i < 10; $i++){
$TPLN->Parse("my_bloc.my_variable","$i");
$TPLN->Loop("my_bloc");

$TPLN->EraseBloc("my_bloc");
?>


TopTop