PHP Classes

File: templates/show.tpl

Recommend this page to a friend!
  Classes of Vladislav Litovka   Simple Template class   templates/show.tpl   Download  
File: templates/show.tpl
Role: Auxiliary data
Content type: text/plain
Description: sample template
Class: Simple Template class
Template engine based on assigning PHP variables
Author: By
Last change:
Date: 15 years ago
Size: 509 bytes
 

Contents

Class file image Download
<html> <head> <title><?php echo $this->title; ?></title> <style> body { margin: 2px; font-size: 12px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #4A4A4A; } </style> </head> <body> <br /> <?php foreach($this->links as $item) { ?> <a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a> <?php echo $item['text']; ?><hr /> <?php } ?> <br /><br /> <b>Somevar</b> value/type is <?php echo $this->somevar.'/('.gettype($this->somevar).')'; ?> </body> </html>