TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
Example 1: "Hello, World!"

Table of Contents

PHP Source:

<?php
    $titan_library_path = '/path/to/titan/lib/';
    require_once $titan_library_path.'tl.core.init.php';

    $html = new \tl\output\html();
    $html->title('Example 1');
    $html->body();
    $html->h1("Hello, World!");
    $html->complete();

Output:

<!DOCTYPE html>
<!-- TITAN Library for PHP5 Copyright 2013, Titan Integration [root@titan-integration.com], http://www.titan-integration.com/ -->
<html>
 <head>
  <meta charset="UTF-8">
  <title>Example 1</title>
 </head>

 <body>
  <h1>Hello, World!</h1>
 </body>
</html>