PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Michael Beck   Pure MVC PHP Standard Framework   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Pure MVC PHP Standard Framework
Framework that implements the MVC design pattern
Author: By
Last change:
Date: 6 years ago
Size: 910 bytes
 

Contents

Class file image Download
<?php
/**
 * PureMVC PHP Basic Demo
 * PureMVC Port to PHP originally translated by Asbjørn Sloth Tønnesen
 *
 * @author Omar Gonzalez :: omar@almerblank.com
 * @author Hasan Otuome :: hasan@almerblank.com
 *
 * Created on Sep 24, 2008
 * PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved.
 * Your reuse is governed by the Creative Commons Attribution 3.0 Unported License
 */

use puremvc\php\demos\basic;

require
__DIR__ . '/puremvc_autoloader.php';

// name of file user browsed to
$filename = $_SERVER[ 'PHP_SELF' ];

// css file name from css zen garden styles click
if (isset( $_GET[ 'c' ] ))
{
   
$cssName = $_GET[ 'c' ];
}
else
{
   
$cssName = 'default';
}

function
html_debug( $stack )
{
    print(
$stack . '<br/>' );
}

// start php application
$basicDemo = new basic\BasicDemo();
// start up the view by sending in the variables.
$basicDemo->startView( $filename, $cssName );