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

 

DirectIOSave

string DirectIOOutput( [string filename],string path)

DirectIOSave() function is a macro that permits to open and save a template.


<?php

$TPLN
->DirectIOSave("my_template.html","files/myne.html");

// is the same as
$TPLN->Open("my_template.html");
$TPLN->SaveTemplate("files/myne.html");

?>


TopTop