PHP Classes

File: Controller.php

Recommend this page to a friend!
  Classes of Mallory Dessaintes   PHP Simple View   Controller.php   Download  
File: Controller.php
Role: Example script
Content type: text/plain
Description: Example controller file
Class: PHP Simple View
Template engine that supports template inheritance
Author: By
Last change:
Date: 12 years ago
Size: 258 bytes
 

Contents

Class file image Download
<?php
   
   
require '../includes/base/class/PhpSimpleView.class.php';
   
   
   
$view = new PhpSimpleView();
   
   
$view->header = 'Heeeader';
   
$view->footer = 'Fooooter';
   
$view->contents = 'coooooonnnnnnnnnnntents';
   
   
$view->loadTemplate('index.tpl');
?>