Page 1 of 1

Anyone use Smarty v3 {while} Loops?

Posted: Mon Jan 27, 2014 9:02 pm
by JohnnyB
Has anyone used {while} loops in layout templates or module templates? I'm not really sure that it is something I would use, just curious if anyone is using it and if it is helpful to them.

Re: Anyone use Smarty v3 {while} Loops?

Posted: Mon Jan 27, 2014 9:50 pm
by velden
Not yet. But maybe it becomes useful once:

Code: Select all

{while $bill != 'paid'}
  {print some random bad words}
{/while}
;D

Re: Anyone use Smarty v3 {while} Loops?

Posted: Mon Jan 27, 2014 10:01 pm
by JohnnyB
velden wrote:

Code: Select all

{while $bill != 'paid'}
  {print some random bad words}
{/while}
haha ;D

Re: Anyone use Smarty v3 {while} Loops?

Posted: Tue Jan 28, 2014 8:23 am
by uniqu3

Re: Anyone use Smarty v3 {while} Loops?

Posted: Tue Jan 28, 2014 2:49 pm
by JohnnyB