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

TPLN Manual

Functions

Open
DirectIOWrite
DirectIOOutput
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

 

Loop

void Loop( string path )

The Loop() function is applied to a bloc to signal its repetition.


<?php

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

?>


TopTop