meta/assets/config/config.php

82 lines
2.0 KiB
PHP
Raw Permalink Normal View History

<?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
2012-07-12 10:31:08 -04:00
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Asset management configuration file
*
* @package miniMVC
* @subpackage Assets
*/
/*
|--------------------------------------------------------------------------
| Document Root
|--------------------------------------------------------------------------
|
2012-07-12 10:31:08 -04:00
| The folder where the index of the website exists. In most situations,
| this will not need to be changed.
|
| If the website is in a folder off of the domain name, like:
2012-07-12 10:31:08 -04:00
| http://example.com/website/
| you will need to add that folder to the document root.
|
*/
$document_root = './';
/*
|--------------------------------------------------------------------------
| CSS Folder
|--------------------------------------------------------------------------
|
| The folder where css files exist, in relation to the document root
|
*/
$css_root = $document_root. 'css/';
/*
|--------------------------------------------------------------------------
| Path from
|--------------------------------------------------------------------------
|
| Path fragment to rewrite in css files
|
*/
$path_from = './images/';
/*
|--------------------------------------------------------------------------
| Path to
|--------------------------------------------------------------------------
|
| The path fragment replacement for the css files
|
*/
2012-09-13 11:07:31 -04:00
$sn = $_SERVER['SCRIPT_NAME'];
$sna = explode('/', $sn);
array_pop($sna);
$sn = implode('/', $sna);
$path_to = "//{$_SERVER['SERVER_NAME']}{$sn}/images/";
/*
|--------------------------------------------------------------------------
| JS Folder
|--------------------------------------------------------------------------
|
| The folder where javascript files exist, in relation to the document root
|
*/
2012-08-31 16:18:23 -04:00
$js_root = $document_root. 'js/';