2012-01-13 11:58:06 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* MiniMVC
|
|
|
|
*
|
|
|
|
* Convention-based micro-framework for PHP
|
|
|
|
*
|
2012-04-26 16:26:50 -04:00
|
|
|
* @package miniMVC
|
2012-01-13 11:58:06 -05:00
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2011 - 2012
|
2012-05-23 12:01:13 -04:00
|
|
|
* @link https://github.com/aviat4ion/miniMVC
|
2012-07-12 10:23:55 -04:00
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
2012-01-13 11:58:06 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* File to configure routes
|
|
|
|
*
|
2012-07-12 10:23:55 -04:00
|
|
|
* Routes work on simple/regex matching.
|
2012-01-13 11:58:06 -05:00
|
|
|
*
|
2012-05-18 13:52:12 -04:00
|
|
|
* For a route mapping http://example.com/blog to the blog controller in the blog module:
|
2012-01-13 11:58:06 -05:00
|
|
|
* 'blog' => 'blog/blog/index'
|
|
|
|
*
|
|
|
|
* To route a special 404 page, set '404_route' to the "module/controller/method" you wish to use
|
|
|
|
*
|
2012-04-26 16:26:50 -04:00
|
|
|
* @package miniMVC
|
|
|
|
* @subpackage App
|
2012-01-13 11:58:06 -05:00
|
|
|
*/
|
2012-07-12 10:23:55 -04:00
|
|
|
|
2012-04-26 16:26:50 -04:00
|
|
|
// --------------------------------------------------------------------------
|
2012-01-13 11:58:06 -05:00
|
|
|
|
2012-07-03 13:33:36 -04:00
|
|
|
return array(
|
2012-01-13 11:58:06 -05:00
|
|
|
// Default Paths
|
|
|
|
'default_controller' => 'welcome',
|
|
|
|
'default_module' => 'welcome',
|
|
|
|
'404_route' => '',
|
2012-07-03 13:33:36 -04:00
|
|
|
);
|
2012-05-18 13:52:12 -04:00
|
|
|
|
|
|
|
// End of routes.php
|