rownum

rownum is used to display the current loop iteration, starting with one. It is an alias to iteration, they work identically.

Example 7-27. section property rownum

	{section name=customer loop=$custid}

	{$smarty.section.customer.rownum} id: {$custid[customer]}<br>

	{/section}





	OUTPUT:



	1 id: 1000<br>

	2 id: 1001<br>

	3 id: 1002<br>