Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QTag  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: sample simple
Class: QTag
Generate tag based documents programmatically
Author: By
Last change:
Date: 6 years ago
Size: 646 bytes
 

Contents

Class file image Download
<?php

include_once 'autoload.inc.php';

$html QTag::factory("html");
$head QTag::factory("head");
$body QTag::factory("body");

$title QTag::factory("title");
$title->add("new template engine");

$script QTag::factory("script");
$script->add("<!-- javascript -->");

$head->add($title);
$head->add($script);

$html->add($head);

$div QTag::factory("div");
$div->setAttribute("id","test");

$textarea QTag::factory("textarea");
$textarea->setAttribute("id","ta");
$textarea->add("text für eine textarea");

$div->add($textarea);

$body->add($div);

$html->add($body);


print_r($html->doRender());