mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 17:42:41 +00:00
Making Router accessible as a singleton
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3397 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
1de5fee5bb
commit
ceb5c9c6f1
3 changed files with 51 additions and 30 deletions
|
@ -321,7 +321,7 @@ class Dispatcher extends Object {
|
|||
* @return array Parameters found in POST and GET.
|
||||
*/
|
||||
function parseParams($from_url) {
|
||||
$Route = new Router();
|
||||
$Route = Router::getInstance();
|
||||
include CONFIGS.'routes.php';
|
||||
$params = $Route->parse ($from_url);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue