Re: IT/ITX - I don't get it - long messages

From: Date: Mon, 11 Feb 2002 12:30:52 +0000
Subject: Re: IT/ITX - I don't get it - long messages
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-821@lists.php.net to get a copy of this message
<srabol@mail.tele.dk> wrote : > > if(!isset($userinfo['medlemsnr'])) > { > // Load the loginform > $tpl->addBlockfile("USER_MENU", "loginForm_block", > "login_form.html"); > if(isset($errmsg)) > { > $tpl->setCurrentBlock("LOGINERR"); > $tpl->setVariable("ERR_MSG",$errmsg); > $tpl->parseCurrentBlock(); > } > > $tpl->setCurrentBlock("LOGINFORM"); > $tpl->touchBlock("LOGINFORM"); > $tpl->parseCurrentBlock(); > } > else > { > // load usermenu > $tpl->addBlockfile("USER_MENU", "usermenu_block", > "user_menu.html"); > $tpl->setCurrentBlock("usermenu_block"); > // this block don't contains any vars {}, so we need to touch it > $tpl->touchBlock("usermenu_block"); > $tpl->parseCurrentBlock(); > } Normally, you don't need to use setCurrentBlock if you only touch the block with touchBlock. Other than that, I don't see where the problem can be. Make sure you use the latest version of IT, IT_Error and ITX as previous ones were buggy. Bertrand Mansion Mamasam

« previous php.pear.general (#821) next »