Re: HTML/Template_ITX : blocks shown even if not declared.

From: Date: Sun, 11 Jan 2004 12:40:48 +0000
Subject: Re: HTML/Template_ITX : blocks shown even if not declared.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10106@lists.php.net to get a copy of this message
On Sun, 11 Jan 2004 11:25:21 +0100 "Nicola Delbono" <ml@key5.com> wrote: > <!-- BEGIN no_detail --> > No email selected > <!-- BEGIN no_detail --> > <html> Should be: > <!-- BEGIN no_detail --> > No email selected > <!-- END no_detail --> As a sidenote, your html is not valid :) > The directive > $tpl->setVariable('username', $username); > will cause mail_detail to be displayed even if not set. > Is there a way to avoid this situation except by using different > template variable for the same php variable ($username)? Worsk for me. Setting username does not display the 'mail_detail' section. Can you provide a script to reproduce the problem (without external datas). If you do not have any variable inside a block, you should use touchBlock: } else { $tpl->touchBlock('no_detail'); } hth pierre

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