You are here: Re: [SMARTY] cycling « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] cycling

Posted by "messju mohr" on 06/18/05 12:34

On Sat, Jun 18, 2005 at 08:32:19AM +0900, D_C wrote:
> is there a way to use a smarty variable as a cycle parameter? tried:
>
> {cycle values=0,stepX assign='posX' }
> {cycle values=0,$stepX assign='posX' }
> {cycle values=0,`$stepX` assign='posX' }
> {cycle values='0,`$stepX`' assign='posX' }

i think you want
{cycle values="0,$stepX" assign='posX' }

see: http://smarty.php.net/manual/en/language.syntax.quotes.php

> but i get the values 0 and "stepX" as a string...
>
> otherwise I guess i can do this but it seems verbose:
>
> {cycle values='0,1' assign='posX' }
> {assign var=posX value=$posX*$stepX}
>
> thanks in advance!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация