Re: [SMARTY] {insert} & weird params-handling
| From: | Andrei Zmievski | Date: | Thu, 25 Apr 2002 14:06:15 +0000 |
| Subject: | Re: [SMARTY] {insert} & weird params-handling | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3885@lists.php.net to get a copy of this message | ||
On Thu, 25 Apr 2002, Norbert Röcher wrote:
> Hi,
>
> i use several inserts within my templates. With "caching" turned off, i
> received the name of the insert within the params as first parameter.
> Because i do a "foreach"-loop within the insert-function for the whole
> params-array I had to "array_shift" the params, to eleminate the name
> of the function, which always was passed as first param. But when
> "caching" is turned on, the name of the insert doesn't apear within the
> params any more and my first 'real' param gets kicked.
>
> Any suggestions to solve this?
Params is an associative array. You should use it as such.
-Andrei
"Perl - the only language that looks the same
before and after RSA encryption." -Keith Bostic