PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Mike Stowe   ressf   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Example script
Class: ressf
Template engine extensible with plugins
Author: By
Last change: Update of sample.php
Date: 8 months ago
Size: 391 bytes
 

Contents

Class file image Download
<?php
require_once('library/ressf.php');

ob_start();
include(
'content/text.phtml');
$contents = ob_get_contents();
ob_end_clean();

$ressf = new ressf();
echo
$ressf->render($contents);

echo
'<hr />';

echo
'Static Call: <br />';
echo
'Desktop: ' . (ressf::isDesktop() ? 'true' : 'false') . '<br />';
echo
'Phone: ' . (ressf::isMobile() ? 'true' : 'false') . '<br />';
?>