raw.php
Raw text ou HTML content
Zed. The immensity of stars. The HyperShip. The people.
(c) 2010, Dereckson, some rights reserved. Released under BSD license.
This is a controller printing HTML content as is.
It prints the raw.tpl view containing two variables:
- PAGE_TITLE (optional), to add a H1 page title
- CONTENT (should be defined), the content to print
To use it:
//(1) Assign your HTML content in CONTENT smarty variable:
$content = "Hello World!";
$smarty->assign('CONTENT', $content);
//(2) Call the raw controller include('controllers/raw.php');
//That's all folk.
To add a title:
$content = "Hello World";
$title = "Raw sample";
$smarty->assign('PAGE_TITLE', $title); $smarty->assign('CONTENT', $content);