help: I can't use a default value for variable
| From: | Oguz Altun | Date: | Thu, 29 Mar 2001 10:16:16 +0000 |
| Subject: | help: I can't use a default value for variable | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-500@lists.php.net to get a copy of this message | ||
hi,
I am trying to do this:
<img src="../{{$image|default:'images/default.jpg'}}" >
but php page crushes with this error message:
<img src="../
Fatal error: Call to undefined function: call_user_func_array() in
/usr/local/apache_php4/lib/php/Smarty.addons.php on line 73
is this a bug or am I doing st. wrong? this should work according to the
doc.
thanks.