Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.tags.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.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: 2008-07-16 12:35
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());