2011-12-27 16:47:27 -05:00
|
|
|
<?php
|
2012-01-11 14:49:26 -05:00
|
|
|
/**
|
|
|
|
* MiniMVC
|
|
|
|
*
|
|
|
|
* Convention-based micro-framework for PHP
|
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2011 - 2012
|
|
|
|
* @link https://github.com/timw4mail/miniMVC
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
2011-12-27 16:47:27 -05:00
|
|
|
|
2011-12-29 16:57:28 -05:00
|
|
|
/**
|
|
|
|
* File to configure routes
|
|
|
|
*
|
|
|
|
* Routes work on simple/regex matching.
|
|
|
|
*
|
|
|
|
* For a route mapping [http://example.com/]blog to the blog controller in the blog module:
|
|
|
|
* 'blog' => 'blog/blog/index'
|
|
|
|
*
|
|
|
|
* To route a special 404 page, set '404_route' to the "module/controller/method" you wish to use
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
return array(
|
2011-12-27 16:47:27 -05:00
|
|
|
// Default Paths
|
2011-12-29 16:57:28 -05:00
|
|
|
'default_controller' => 'welcome',
|
|
|
|
'default_module' => 'welcome',
|
|
|
|
'404_route' => '',
|
2011-12-27 16:47:27 -05:00
|
|
|
);
|