Location: PHPKode > scripts > Booster Template > booster-template/test.tpl
{* This is a comment *}

{* Include another template *}
{include header}

{* Same as foreach($rows as $row) *}
{loop $rows $row}
	$row<br />
{loopelse}
	no record found
{/loop}

<br />

{* Same as foreach($rows as $key => $row) *}
{loop $rows $key $row}
	{if $key == 0}
		$key => <strong>$row</strong>
	{else}
		{* Use the count_chars method in my text Helper class *}
		$key => {$row|trim|number_format:2}
	{/if}
	<br />
{loopelse}
	no record found
{/loop}

<br />

{eval $i = 0}
The value of {='$i'} is $i

<br /><br />

OS: {PHP_OS}<br />
{lang memory_usage}: {MEMORY_USAGE}
Return current item: Booster Template