- <?
- /**
- * The MVC Package.
- * This is the init file for the myPHP MVC (Model View Controller) system
- *
- * @package mvc
- * @filesource
- * @see MYPHP_MVC_PATH/init.php
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * @global HTML_MVC_PATH Defines the Path to the MVC package, FIXED, do not change ...
- */
- define('HTML_MVC_PATH' , MYPHP_MVC_PATH.'/html');
- define('HTML_MVC_CONTROLLER_PATH', HTML_MVC_PATH.'/controller');
- define('HTML_MVC_RESOURCE_PATH' , HTML_MVC_PATH.'/resource');
- define('HTML_MVC_VIEW_PATH' , HTML_MVC_PATH.'/view');
-
- /**
- * Define the MVC system constants, FIXED, do not change ...
- * must be called before Default.php
- * @see HTML_MVC_RESOURCE_PATH.'/Define.php' The MVC Define Package
- */
- if (defined('HTML_MVC_RESOURCE_PATH')) {
- if (file_exists(HTML_MVC_RESOURCE_PATH.'/Define.php')) {
- require_once(HTML_MVC_RESOURCE_PATH.'/Define.php');
- } else {
- die('MYPHP_MVC_PATH/init.php, Unable to include HTML_MVC_RESOURCE_PATH/Define.php from '.HTML_MVC_RESOURCE_PATH);
- }
- }
-
- /**
- * Define the default values, FIXED, do not change ...
- * NOTE: Define.php must be called before this file
- * @see HTML_MVC_RESOURCE_PATH.'/Default.php' The MVC Default Package
- */
- if (defined('HTML_MVC_RESOURCE_PATH')) {
- if (file_exists(HTML_MVC_RESOURCE_PATH.'/Default.php')) {
- require_once(HTML_MVC_RESOURCE_PATH.'/Default.php');
- } else {
- die('MYPHP_MVC_PATH/init.php, Unable to include HTML_MVC_RESOURCE_PATH/Default.php from '.HTML_MVC_RESOURCE_PATH);
- }
- }
- ?>