PHP Classes

File: templates/test.html

Recommend this page to a friend!
  Classes of Yerfry Ramirez   PHP OOP Template Engine   templates/test.html   Download  
File: templates/test.html
Role: Auxiliary script
Content type: text/plain
Description: Example 1
Class: PHP OOP Template Engine
Setup and process template with a fluent interface
Author: By
Last change:
Date: 9 years ago
Size: 481 bytes
 

Contents

Class file image Download
{template file='mhm.html'}

<br />
<br />
hue hue

<br />
<br />

Foreach singletton example:


{%assign|$Array:['test', 'test2']%}
<br />
{foreach $Array as $single}
{%echo|$single%}
{/foreach}

<br />
<br />

Implode example:

<br />
{%echo|{%implode|', ', $Array%}%}

<br />
<br />

Explode example:

<br />

{php print_r({%explode|'h', $Variable%})}

<br />
<br />

For loop example:
<br />
{for $i = 0; $i < 11; $i += 1}
{$i}
{/for}