meta/app/config/routes.php

46 lines
1.2 KiB
PHP
Raw 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
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* 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
*
* @package miniMVC
* @subpackage App
*/
// --------------------------------------------------------------------------
2012-09-05 11:46:51 -04:00
return [
// Default Paths
2012-08-31 16:18:23 -04:00
'default_controller' => 'welcome',
'default_module' => 'meta',
'genre' => 'meta/genre/index',
'genre/add' => 'meta/genre/add',
2012-09-05 11:46:51 -04:00
'genre/add_category' => 'meta/genre/add_category',
2012-08-31 16:18:23 -04:00
'category' => 'meta/category/index',
2012-09-05 11:46:51 -04:00
'category/add_section' => 'meta/category/add_section',
2012-08-31 16:18:23 -04:00
'section' => 'meta/section/index',
2012-09-05 11:46:51 -04:00
'section/add_data' => 'meta/section/add_data',
2012-08-31 16:18:23 -04:00
'404_route' => '',
2012-09-05 11:46:51 -04:00
];
// End of routes.php