Re: Smarty 1.4.0b1 available

From: Date: Thu, 26 Apr 2001 18:08:02 +0000
Subject: Re: Smarty 1.4.0b1 available
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-604@lists.php.net to get a copy of this message
put some debug code in there DEBUG: before if, op is {$op} {if $op == "article"} DEBUG: displaying article.tpl {include file="article.tpl"} {else} DEBUG: displaying corps.tpl {include file="corps.tpl"} {/if} DEBUG: after if Luc Saint-Elie wrote: > > Hello all, > > I have a littel( and probably stupid) probkem > > I have a index.php file that instanciates smarty do some stuff then call a > index.tpl templates that its self calls a whole bunch of templates > > in index.tpl i have : > > {config_load file=header.conf section="setup"} > {include file="header.tpl"} > {include file="bloc_haut.tpl"} > {include file="bloc_central_haut.tpl"} > {if $op == "article"} > {include file="article.tpl"} > {else} > {include file="corps.tpl"} > {/if} > > {include file="bloc_central_bas.tpl"} > > if the url is index.php -> corps.tpl is displayed and every thing is fine > but > if the url is index.php?op=article article.tpl is displayed and under > corps.tpl (both are displayed as if the if/esle doesn't exist) > > Where did I screw things up ? > > Luc > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#604) next »