Re: [SMARTY-DEV] plugin params

From: Date: Mon, 15 Dec 2003 18:50:53 +0000
Subject: Re: [SMARTY-DEV] plugin params
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1992@lists.php.net to get a copy of this message
--- Simon Benjamin <info@smarty.hu> wrote: > img="$CONT_COMM_URL/images/pg_$PRODUCT.NAME|strtolower_$pic_%d.jpg" > > How to use |modifiers ? Hi, While backticks allow you to embed vars into double quotes, they do not permit all of Smarty's features to be embedded. To use the modifier, you must first assign a temp var: eg: {assign var=temp value=$PRODUCT.NAME|strtolower} Your image param would then be something like: img="$CONT_COMM_URL/images/pg_$temp_$pic_%d.jpg" xo boots __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/

« previous php.smarty.dev (#1992) next »