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:
nate 2006-08-12 13:02:51 +00:00
parent 1de5fee5bb
commit ceb5c9c6f1
3 changed files with 51 additions and 30 deletions

View file

@ -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);