Update of /cvsroot/phpwebapp/web_app/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30117/doc
Modified Files:
changes.txt
Log Message:
added the function WebApp::fill_template($tpl_file)
Index: changes.txt
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/doc/changes.txt,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** changes.txt 20 Sep 2004 13:28:06 -0000 1.12
--- changes.txt 7 Oct 2004 09:41:17 -0000 1.13
***************
*** 21,24 ****
--- 21,37 ----
without being afraid that init() will override them.
-------------------------------------------------------------------
+ * Added function:
+ WebApp::fill_template($tpl_file, $vars)
+ This function processes the given template, replacing any variables,
+ including any other templates, etc. and returns the resulting
+ string. The parameter $vars(optional) is an array of variables
+ (associative array), which can be used to replace the template vars.
+ This function is different from:
+ WebApp::getHtmlPage($tpl_file) and from
+ WebApp::constructHtmlPage($tpl_file)
+ because they assume that the given template file is a main template
+ (which has a prolog <?xml ...?> and an <html> root element),
+ and also they append some extra things to the consructed page,
+ like debug information, session variables, etc.
-------------------------------------------------------------------
-------------------------------------------------------------------
|