PHP Classes

Little Error in documentation.html

Recommend this page to a friend!

      Template Class  >  All threads  >  Little Error in documentation.html  >  (Un) Subscribe thread alerts  
Subject:Little Error in documentation.html
Summary:when explain the pget_file() function, title is pprint_file()
Messages:1
Author:Patricio Priede
Date:2005-11-23 16:39:22
 

  1. Little Error in documentation.html   Reply   Report abuse  
Picture of Patricio Priede Patricio Priede - 2005-11-23 16:39:22
Is just that

[quote]
void pprint_file(string filename [, mixed variable names]):

This function acts as an alternative to calling load_file(), register(), parse() and then return_file() and will call all those functions for you. When loading the file it will find a spare file_id, use it, but will NOT unset() it when finished. The second argument can be a string or an array, as with the register() function and is passed directly to that function. If you have loops to process, you should not use this function. This function was contributed by Bruce Christensen. An example:

$tpl = new template;
$output = $tpl->pget_file('your.template.html', 'var1, var2, var3');
[/quote]

And has to be
[quote]
void pget_file(string filename [, mixed variable names]):

This function acts as an alternative to calling load_file(), register(), parse() and then return_file() and will call all those functions for you. When loading the file it will find a spare file_id, use it, but will NOT unset() it when finished. The second argument can be a string or an array, as with the register() function and is passed directly to that function. If you have loops to process, you should not use this function. This function was contributed by Bruce Christensen. An example:

$tpl = new template;
$output = $tpl->pget_file('your.template.html', 'var1, var2, var3');
[/quote]



Other "error" may be in pget() function, because the explanation is the same of pprint()
Maybe can add en the second line
[quote]This function acts as an alternative to calling register(), parse() and then return_file() and will call all those functions and return the result.[/quote]