PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Yerfry Ramirez   Simple PHP OOP CMS   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP OOP CMS
Build Web site pages from template classes
Author: By
Last change: Update index.php
Date: 9 years ago
Size: 261 bytes
 

Contents

Class file image Download
<?php
require 'config.php';

if(!
Session::exists('UserData')) header('Location: login.php');

$Template = new Template();
$Member = new User();

$Template->file('home.html')
    ->
assign('test', 3000)
    ->
assign('Title', Configuration::get('Title'))
->
render();
?>