예제 #1
0
<?php

error_reporting(E_STRICT | E_ALL);
// Application configuration
//----------------------------------------------------------------------------------------------
// Configuration
define('CONFIGURATION', 'development');
// Dingo Location
define('SYSTEM', 'system');
// Application Location
define('APPLICATION', 'application');
// Config Directory Location (in relation to application location)
define('CONFIG', 'config');
// Allowed Characters in URL
define('ALLOWED_CHARS', '/^[ \\!\\,\\~\\&\\.\\:\\+\\@\\-_a-zA-Z0-9]+$/');
// End of configuration
//----------------------------------------------------------------------------------------------
define('DINGO', 1);
require_once SYSTEM . '/core/bootstrap.php';
bootstrap::run();
예제 #2
0
파일: index.php 프로젝트: buil/mvc-php
<?php

/*
Rafael Jose Garcia Suarez
29 de ago 2015
*/
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', realpath(dirname(__FILE__)) . DS);
define('APP_PATH', ROOT . 'application' . DS);
require_once APP_PATH . 'Config.php';
require_once APP_PATH . 'Request.php';
require_once APP_PATH . 'Bootstrap.php';
require_once APP_PATH . 'Controller.php';
require_once APP_PATH . 'Model.php';
require_once APP_PATH . 'View.php';
require_once APP_PATH . 'Registro.php';
bootstrap::run(new Request());