2012-06-13 13:49:10 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* MiniMVC
|
|
|
|
*
|
|
|
|
* Convention-based micro-framework for PHP
|
|
|
|
*
|
|
|
|
* @package miniMVC
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2011 - 2012
|
|
|
|
* @link https://github.com/aviat4ion/miniMVC
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Main config file
|
|
|
|
*
|
|
|
|
* @package miniMVC
|
|
|
|
* @subpackage App
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Base Url
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This is the url path where the framework is located. Requires trailing
|
|
|
|
| slash.
|
|
|
|
|
|
|
|
|
*/
|
2015-06-04 14:30:42 -04:00
|
|
|
define('BASE_URL', '//' . $_SERVER['HTTP_HOST'] . '/');
|
2012-06-13 13:49:10 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Url index file
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This determines whether "index.php" is in generated urls
|
|
|
|
|
|
|
|
|
*/
|
2015-06-04 14:30:42 -04:00
|
|
|
define('URL_INDEX_FILE', '');
|
2012-06-13 13:49:10 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Content Domain
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This is the domain used for serving content, such as css, javascript.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('CONTENT_DOMAIN', BASE_URL);
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Static Lib Path
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This is the path where the 'assets' directory is on the static domain.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('STATIC_LIB_PATH', CONTENT_DOMAIN.'assets/');
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Group Style Path
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This is the path that is used to determine the relative path to the
|
|
|
|
| stylesheet minifier. This should not need to be changed.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('STYLE_PATH', STATIC_LIB_PATH . 'css.php/g/');
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Group Javascript Path
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This is the path that is used to determine the relative path to the
|
|
|
|
| javascript minifier. This should not need to be changed.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('SCRIPT_PATH', STATIC_LIB_PATH . 'js.php/g/');
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default title
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Default title for webpages
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('DEFAULT_TITLE', "meta");
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default css group
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2012-08-22 21:28:54 -04:00
|
|
|
| Default css group to show if none explicity chose
|
2012-06-13 13:49:10 -04:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('DEFAULT_CSS_GROUP', "css");
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default js group
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2012-08-22 21:28:54 -04:00
|
|
|
| Default js group to show if none explicitly chosen
|
2012-06-13 13:49:10 -04:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('DEFAULT_JS_GROUP', "js");
|
|
|
|
|
2012-08-22 21:28:54 -04:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Debug backtrace
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Whether or not to show a backtrace for php errors
|
2012-09-12 12:57:41 -04:00
|
|
|
|
|
2012-08-22 21:28:54 -04:00
|
|
|
| Must be defined as TRUE for the backtrace to display.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
define('SHOW_DEBUG_BACKTRACE', TRUE);
|
|
|
|
|
2012-08-31 16:18:23 -04:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Gzip compress
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Whether or not use gzip compression on page output
|
|
|
|
|
|
|
|
|
*/
|
2012-09-12 12:57:41 -04:00
|
|
|
define('GZ_COMPRESS', TRUE);
|
2012-08-31 16:18:23 -04:00
|
|
|
|
2012-06-13 13:49:10 -04:00
|
|
|
// End of config.php
|