Re: [SMARTY] quick question

From: Date: Mon, 14 Apr 2003 19:22:21 +0000
Subject: Re: [SMARTY] quick question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9251@lists.php.net to get a copy of this message
Do that in PHP, assign dynamic row and col values. It's more efficient that way and keeps template logic focused on presentation. <textarea name="foo" rows="{$foo_rows}" cols="{$foo_cols}">{$foo|escape}</textarea> On Mon, 2003-04-14 at 14:01, luis wrote: > I want to build a textarea with x rows being x the strlen of $foo (A > smarty variable) > {math equation = "x / 80" x=strlen($foo) assign=rows} does not work, > ideas? > -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#9251) next »