[TriLUG] Smarty

Brian McCullough bdmc at buadh-brath.com
Thu Sep 19 11:45:19 EDT 2013


Drawing once again on the deep well of knowledge here, I have a question
about Smarty.

If there a "break" ( exit early ) statement in the "foreach" block in
Smarty 2?

I have been reading the documentation and I don't seem to see that kind
of functionality.


Basically, I have a database read providing the array of data being
displayed, but I want to stop displaying after a certain number of
items, rather than blindly displaying everything, no matter what.


Thanks,
Brian




More information about the TriLUG mailing list