Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 1 year 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 />';
?>