Skip to content
This repository was archived by the owner on May 28, 2019. It is now read-only.

Introduction

Johan Strydom edited this page May 31, 2013 · 4 revisions

Tsama PHP, a public domain, compact PHP framework that can publish in HTML5 and CSS3

Synopsis

Tsama PHP allows the developer to create HTML5 websites while allowing for node manipulation on server side.

The following is an example of the node structure manipulation in php.

require_once("globals.php");

require_once("core".DS."tsama.php");

$text = 'Hello World!';

$compress_output = TRUE;

$html = new TsamaNode('html');

$head = $html->AddChild('head');

$body = $html->AddChild('body');

$title = $head->AddChild('title');

$title->SetValue($text);

$h1 = $body->AddChild('h1');

$h1->SetValue($text);

echo '';

echo HTML5Parser::_out($html,null,$compress_output);

?>

The following is the expected output of the above example's php code.

`

<title>Hello World!</title>

Hello World!

`

Table of contents

Introduction

Installation and Configuration

Predefined Constants and Globals

Creating a Layout

Creating a Theme

Creating a Service

Clone this wiki locally