RE: [SMARTY] Using smarty variables inside {php} {/php} blocks

From: Date: Thu, 05 Sep 2002 19:26:20 +0000
Subject: RE: [SMARTY] Using smarty variables inside {php} {/php} blocks
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5945@lists.php.net to get a copy of this message
>Smarty will extract those vars any way - I don't think >this is a >performance issue. Have you done some benchmarks? That's true. Nope, no benchmarks, just top-of-the-head :) > >Nevertheless, I hope you agree with me when I say you should >always access the $_tpl_vars array in order to get >template vars >inside {php} and {include_php}. > >-- >Ferdinand Beyer ><fbeyer@clickhand.de> > absolutely. That's why I use the GetTplVar function I posted earlier (which just wraps that access and checks for variable existence). Still can't remember who gets credit for that one. Gary

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