PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Kevin Burke   Scrubs   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: a test of the scripts
Class: Scrubs
Object-relational mapping / Data persistence tool
Author: By
Last change:
Date: 20 years ago
Size: 425 bytes
 

Contents

Class file image Download
<?php

/**
 *
 *
 * @version $Id$
 * @copyright 2003
 **/

include_once("Smarty/libs/Smarty.class.php");
include_once(
"core/Scrubs.php");
include_once(
"classes/Page.php");

$s = new Scrubs();
$p = new Page();
$smarty = new Smarty();

$p = $s->load($p, "news", false);
$pageStories = $p->getStories();
$smarty->assign("pageStories", $pageStories);

$s->shutdown();

$smarty->display("scrubs.tpl");
?>