Re: RE: [SMARTY] modifiers functions

pete M <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
u can also use the  function 0n php... by registering it

http://smarty.php.net/manual/en/api.register.function.php

pete

George Miroshnikov wrote:
> Hello Nayra,
> 
> Sunday, March 13, 2005, 3:15:16 AM, you wrote:
> 
> NQ> It seems not to work so. If variable is less than 20 characters, truncate
> NQ> don't modify it, but if it is more than 20, then truncate cut it and add "
> NQ> ". I need a function that modifies my variable when its length is less than
> NQ> 20 charaters and adds space characters to make its length 20 characters. :-)
> 
> You should probably create new custom modifier as a wrapper for PHP's
> str_pad() function.
> 
> Cheers,
> George Miroshnikov.

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.