[phpwebapp-commits] CVS: web_app/parser class.Render.php,1.19,1.20
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2005-04-18 09:41:43
|
Update of /cvsroot/phpwebapp/web_app/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22746/parser Modified Files: class.Render.php Log Message: added debug for includes and webobjects Index: class.Render.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Render.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** class.Render.php 11 Apr 2005 06:02:48 -0000 1.19 --- class.Render.php 18 Apr 2005 09:41:27 -0000 1.20 *************** *** 251,256 **** function render_FileTpl($file_tpl) { ! global $tplVars; $tplVars->pushScope(); --- 251,263 ---- function render_FileTpl($file_tpl) { ! if (DEBUG_INCLUDES) ! { ! $this->output("<span class='webapp_filetpl_filename'>\n"); ! $this->output($file_tpl->filename); ! $this->output("</span>\n"); ! $this->output("<div class='webapp_filetpl'>\n"); ! } + global $tplVars; $tplVars->pushScope(); *************** *** 260,267 **** --- 267,277 ---- $tplVars->addVar("./", $tpl_path); + //render the FileTpl $this->render_tpl($file_tpl); $tplVars->popScope(); + + if (DEBUG_INCLUDES) $this->output("</div>\n"); } *************** *** 288,294 **** function render_WebObjectTpl($wobj_tpl) { ! global $tplVars; $tplVars->pushScope(); //save the current scope of the var stack $wobj_tpl->scope = $tplVars->getCurrentScope(); --- 298,312 ---- function render_WebObjectTpl($wobj_tpl) { ! if (DEBUG_WEBOBJECTS) ! { ! $this->output("<span class='webapp_webobjtpl_id'>\n"); ! $this->output($wobj_tpl->id); ! $this->output("</span>\n"); ! $this->output("<div class='webapp_webobjtpl'>\n"); ! } + global $tplVars; $tplVars->pushScope(); + //save the current scope of the var stack $wobj_tpl->scope = $tplVars->getCurrentScope(); *************** *** 315,318 **** --- 333,338 ---- $tplVars->popScope(); + + if (DEBUG_WEBOBJECTS) $this->output("</div>\n"); } |