PHP Classes

File: sys/generator.php

Recommend this page to a friend!
  Classes of Nemeth Zoltan   RS framework   sys/generator.php   Download  
File: sys/generator.php
Role: Example script
Content type: text/plain
Description: Example script
Class: RS framework
Web application development framework
Author: By
Last change: Update of sys/generator.php
Date: 1 year ago
Size: 650 bytes
 

Contents

Class file image Download
<?php
if (!isset($_SESSION['core']) || $_SESSION['core'] != 1) {
    die(
"Core not loaded!");
}
$request = Request::getInstance();
$cache = SessionCache::getInstance();
$router = Router::getInstance();
$router->process($request);
echo
$router;
/**
 * RS framework processing functionality
 */
/**
 * Generate view for data
 */
$object = $router->getTemplate();
$view = $object::getInstance();
/**
 * Run process files
 */
$processes = $router->getProcess();
if (
count($processes) > 0) {
    foreach (
$processes as $process) {
        if (
is_executable('process/' . $process)) {
            include_once
'process/' . $process;
        }
    }
}
/**
 * Make view
 */
$view->show();