Login   Register  
PHP Classes
elePHPant
Icontem

File: test.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chris Lam  >  Booster Template  >  test.tpl  >  Download  
File: test.tpl
Role: Auxiliary data
Content type: text/plain
Description: Sample template file
Class: Booster Template
Compiled template engine
Author: By
Last change: n/a
Date: 2008-07-01 04:43
Size: 612 bytes
 

Contents

Class file image Download
{* 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}