diff options
Diffstat (limited to 'poc/poc02-compiling-cake/src/vendor')
-rw-r--r-- | poc/poc02-compiling-cake/src/vendor/cakephp-2.2.1-0-gcc44130/lib/Cake/Console/Command/ConsoleShell.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/poc/poc02-compiling-cake/src/vendor/cakephp-2.2.1-0-gcc44130/lib/Cake/Console/Command/ConsoleShell.php b/poc/poc02-compiling-cake/src/vendor/cakephp-2.2.1-0-gcc44130/lib/Cake/Console/Command/ConsoleShell.php index ee8f07d..222ee33 100644 --- a/poc/poc02-compiling-cake/src/vendor/cakephp-2.2.1-0-gcc44130/lib/Cake/Console/Command/ConsoleShell.php +++ b/poc/poc02-compiling-cake/src/vendor/cakephp-2.2.1-0-gcc44130/lib/Cake/Console/Command/ConsoleShell.php @@ -64,7 +64,9 @@ class ConsoleShell extends AppShell { foreach ($this->models as $model) { $this->out(" - {$model}"); } - $this->_loadRoutes(); + if (!$this->_loadRoutes()) { + $this->out(__d('cake_console', "There was an error loading the routes config. Please check that the file exists and is free of parse errors.")); + } } /** @@ -299,8 +301,8 @@ class ConsoleShell extends AppShell { $this->out(__d('cake_console', "Routes configuration reloaded, %d routes connected", count($router->routes))); break; case (preg_match("/^routes\s+show/i", $command, $tmp) == true): - $router = Router::getInstance(); - $this->out(implode("\n", Hash::extract($router->routes, '{n}.0'))); + //$router = Router::getInstance(); + $this->out(print_r(Hash::combine(Router::$routes, '{n}.template', '{n}.defaults'))); break; case (preg_match("/^route\s+(\(.*\))$/i", $command, $tmp) == true): if ($url = eval('return array' . $tmp[1] . ';')) { |