Пример #1
0
<?php

/**
 * @author		Jesse Boyer <*****@*****.**>
 * @copyright	Copyright (C), 2011-12 Jesse Boyer
 * @license		GNU General Public License 3 (http://www.gnu.org/licenses/)
 *				Refer to the LICENSE file distributed within the package.
 *
 * @link		http://jream.com
 */
require_once '../../jream/autoload.php';
new jream\Autoload('../../jream/');
use jream\MVC\Bootstrap;
/**
 * Init MVC
 */
$bootstrap = new Bootstrap();
/**
 *See if there is a route match 
 */
$bootstrap->setPathRoot(getcwd());
$bootstrap->setPathController('controller/');
$bootstrap->setPathModel('model/');
$bootstrap->setPathView('view/');
$bootstrap->setControllerDefault('index');
$bootstrap->init();