Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marcelo Costa  >  TagTemplate  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: script
Class: TagTemplate
Template processing engine based on PHP tags
Author: By
Last change:
Date: 6 years ago
Size: 481 bytes
 

Contents

Class file image Download
<?php
include_once ("class_TagTemplate.php");
$Objeto = new TagTemplate();
# Setup de tags
$Objeto->setTagContent("title","title","Tag Template by Marcelo Costa");
$Objeto->setTagContent("myjavascript","script",null,array("src"=>"myjavascript.js","type"=>"text/javascript"));
$Objeto->setTagSimple("mycssfile","link",array("href"=>"mycssfile.css","rel"=>"stylesheet","type"=>"text/css"));
$Objeto->setTagContent("text","h3","Hello World");
$Objeto->useTemplate("template.php");
?>