-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #924 from LuckyCyborg/master
Make the Routing configurable via app/Config/Routing.php
- Loading branch information
Showing
6 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Routing Configuration | ||
* | ||
* @author Virgil-Adrian Teaca - [email protected] | ||
* @version 3.0 | ||
*/ | ||
|
||
use Core\Config; | ||
|
||
|
||
/** | ||
* Routing configuration | ||
*/ | ||
Config::set('routing', array( | ||
'patterns' => array( | ||
//':hex' => '[[:xdigit:]]+', | ||
//':uuidV4' => '\w{8}-\w{4}-\w{4}-\w{4}-\w{12}' | ||
), | ||
'default' => array( | ||
'controller' => DEFAULT_CONTROLLER, | ||
'method' => DEFAULT_METHOD | ||
) | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters