[TYPO3-mvc] Fluid - is there a way to check if an object is the first or last object?

Martin Kutschker masi-no at spam-typo3.org
Tue Jul 27 11:16:06 CEST 2010


Am 27.07.2010 09:36, schrieb Bastian Waidelich:
> Martin Kutschker wrote:
> 
> Hi Masi,
> 
>> My only nitpicks are the names of "iteration" (correct but not striking) and "cycle" (which I think
>> to be a bit misleading as the loop won't restart at the beginning).
> 
> "iteration" should actually be "iterationData" or "iterationInformation". But I think it's OK to go
> for "iteration" here in favor of short argument names.

You express my thoughts ;)

> I was skeptical about "cycle" as well, but actually it's the correct word for it IMO. A for loop
> through all months of a year has 12 cycles (Durchläufe).

I thought it would be just one cycle or two if you have a span of two years.

> Or what would you suggest?

"counter" (which implies IMH that it starts with 1).

Masi


More information about the TYPO3-project-typo3v4mvc mailing list