Location: PHPKode > scripts > Simple PHP Template Engine > index.php
<?
include 'class.template.php';
$tmp = new Template('', 'tpl');
$tmp->addTag(array(
         'textarea1' => array(
             'textarea' => array(
                'cols' => 10,
                'rows' => 10,
                'value' => 'test'
          )
          ),
          'input_text' => array(
               'input' => array(
                   'type' => 'text',
                    'value' => 'test text'
                )
           )
));
$tmp->loadTemplate('test');
$tmp->set(array(
        'hello' => date("H:i",time()),
        'aca' => 'test',
        'test' => 'bla'
        )
);
$tmp->output();
?>
Return current item: Simple PHP Template Engine