Re: [SMARTY] bahavior of variables in template, but not assigned
| From: | messju mohr | Date: | Mon, 17 Mar 2003 19:24:20 +0000 |
| Subject: | Re: [SMARTY] bahavior of variables in template, but not assigned | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8706@lists.php.net to get a copy of this message | ||
On Mon, Mar 17, 2003 at 10:11:03AM -0800, Dennis Gearon wrote:
> Does smarty remove the variable delimiter and name of any variable it
> finds, even if it is not in the assign array? It seems to, and that is a
> handy behavior!
yes.
more specific:
it tries to render the variable. php raises a notice of an undefined
index in the $_tpl_vars-array. but smarty suppresses the display of
notices when $smarty->debugging == false.
HTH
messju
> Please cc/bc me as I am on digest, thx.
>
> --
> Dennis Gearon