Re: [SMARTY] {if @in_array()} Problem....
| From: | Monte Ohrt | Date: | Sun, 16 Feb 2003 19:43:34 +0000 |
| Subject: | Re: [SMARTY] {if @in_array()} Problem.... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7789@lists.php.net to get a copy of this message | ||
fix committed to CVS.
On Sat, 2003-02-15 at 16:10, Steve wrote:
> I use the following check extensively in my templates:
>
> {if @in_array(22,$smarty.session.operations)}
> {/if}
>
> It now generates the following error:
>
> Fatal error: Smarty: [in admin/admin.tpl line 27]: syntax error:
> unidentified token '@in_array(22,$smarty.session.operations)'
> (Smarty_Compiler.class.php, line 1202) in
> /var/www/html/bw/inc/lib/smarty/Smarty_Compiler.class.php on line 1818
>
> Please tell me I can use php functions with error reporting suppressed in
> templates still...
>
> Using:
> Smarty 2.4.2
> PHP 4.3.0
>
> Thanks,
>
> Steve
--
Monte Ohrt <monte@ispi.net>