[geeklog-cvs] MVCnPHP/quickform index.php,NONE,1.1 mvcconfig.xml,NONE,1.1

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri May 2 14:00:41 EDT 2003


Update of /usr/cvs/geeklog/MVCnPHP/quickform
In directory internal.geeklog.net:/tmp/cvs-serv25395

Added Files:
	index.php mvcconfig.xml 
Log Message:
Initial release for QuickForm example


--- NEW FILE: index.php ---
<?php

/**
* MVCnPHP - Sample Application
*
* This is the only viewable page for the contact manager
* application.  This page instanstiates a controller object
* sets the require properties and begins to process a request.
*
* To change behavior of the controller one only needs to edit the
* appropriate configuration file (mvcconfig.php OR mvcconfig.xml)
*
* This source file is subject to version 2.02 of the PHP license,
* that is bundled with this package in the file LICENSE, and is
* available at through the world-wide-web at
* http://www.php.net/license/2_02.txt.
* If you did not receive a copy of the PHP license and are unable to
* obtain it through the world-wide-web, please send a note to
* license at php.net so we can mail you a copy immediately.
*
* @author Tony Bibbs <tony at geeklog.net>
* @copyright Tony Bibbs 2003
* @package net.geeklog.mvc.sampleapp
* @version $Id: index.php,v 1.1 2003/05/02 18:00:39 tony Exp $
*
*/

/**
* Controller part of the MVC
*/
require_once '../Controller.class.php';

$configData = '/var/www/MVCnPHP/quickform/mvcconfig.xml'; 
$controller = &new Controller($configData, MVC_XML);
$controller->setMVCBase('/var/www/MVCnPHP/');
$controller->setBaseURL('http://localhost/MVCnPHP/quickform');
$controller->setViewDir('/var/www/MVCnPHP/quickform/views/');
$controller->setCommandDir('/var/www/MVCnPHP/quickform/views/');
$controller->processRequest();

?>
--- NEW FILE: mvcconfig.xml ---
<?xml version="1.0" encoding="UTF-8"?>
    <MVC_CONFIGURATION>
        <VIEW ID="show" NAME="QFExampleOne" DEFAULT="true"></VIEW>
        <MODEL ID="validate" NAME="QFExampleOne">
            <FORWARD ID="showAgain" TYPE="view">show</FORWARD>
        </MODEL>
    </MVC_CONFIGURATION>




More information about the geeklog-cvs mailing list