PHP Classes

File: new.php

Recommend this page to a friend!
  Classes of DC  >  Chav„o Template Manager  >  new.php  >  Download  
File: new.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Chav„o Template Manager
Template engine that replaces variables
Author: By
Last change: Change language from portuguese to english
Date: 12 years ago
Size: 564 bytes


Class file image Download

include 'CTemplate.php';

$objT = new CTemplate('new.html','templates');
$objT = new CTemplate();

$linha[0] = "Zero";
$linha[1] = "One";
$linha[2] = "Two";
$linha[3] = "Three";

$teste[0] = "1";
$teste[1] = "2";
$teste[2] = "3";
$teste[3] = "4";
$teste[4] = "5";

$objT->assign('title','Test page');
$objT->assign('variavel_teste',"New value to be placed at variavel_teste");


For more information send a message to info at phpclasses dot org.