PHP Classes

File: sample.tags.php

Recommend this page to a friend!
  Classes of Tom Schaefer   QTag   sample.tags.php   Download  
File: sample.tags.php
Role: Example script
Content type: text/plain
Description: Full sample
Class: QTag
Generate tag based documents programmatically
Author: By
Last change:
Date: 16 years ago
Size: 591 bytes
 

Contents

Class file image Download
<?php

include_once 'autoload.inc.php';

$html = QHtml::factory();
$head = QHead::factory();
$body = QBody::factory();

$title = QTitle::factory()->add("new template engine");
$script = QScript::factory()->add("<!-- javascript -->");

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

$html ->add($head);

$div = QDiv::factory('container')
        ->
setAttribute("id","test");

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

$div->add($textarea);

$body->add($div);

$html->add($body);


print_r($html->doRender());