Re: [SMARTY] indirect indexing (was: nested foreach loop)
| From: | Andrei Zmievski | Date: | Thu, 11 Apr 2002 17:07:14 +0000 |
| Subject: | Re: [SMARTY] indirect indexing (was: nested foreach loop) | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3636@lists.php.net to get a copy of this message | ||
On Thu, 11 Apr 2002, Robert V. Zwink wrote:
> Thanks for your quick response. When you say "...and I now added ability to
> index arrays and access object properties indirectly via simple variables"
> does this mean you have added it to CVS somewhere, or you added to
> specifications that will be implemented for the next version?
It has been added to CVS for the next release.
> I also have another question. In the manual on page
>
> http://www.phpinsider.com/php/code/Smarty/docs/tips.html#TIPS.BLANK.VAR.HAND
> LING
>
> I see the example:
> {* the short way *}
> {$title|default:" "}
>
> This doesn't seem to work for me. I get the error:
> Warning: Smarty plugin error: [in smarty_single_product_results.ptpl line
> 136]: modifier 'default' is not implemented in
> /m1/web/devmccom/php-lib/classes/Smarty.class.php on line 1647
>
> Am I missing something? I have Smarty Version: 2.0.1 recently downloaded
> from phpinsider.com and PHP Version 4.0.6
Do you have modifier.default.php in plugins/ directory? Is this the only
modifier that doesn't work?
-Andrei
* I am a legend in my spare time. *