Author: phpnut
Date: 3:32:21 AM, Friday, October 28, 2005
Message:
Another fix for error




git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1248 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2005-10-28 08:33:35 +00:00
parent 550c5e22e9
commit 051fe48685

View file

@ -138,7 +138,14 @@ class Dispatcher extends Object
require_once(CAKE.'app_controller.php'); require_once(CAKE.'app_controller.php');
$controller =& new AppController(); $controller =& new AppController();
$params['action'] = 'missingController'; $params['action'] = 'missingController';
if (empty($params['controller']))
{
$params['controller'] = "Controller";
}
else
{
$params['controller'] = Inflector::camelize($params['controller']."Controller"); $params['controller'] = Inflector::camelize($params['controller']."Controller");
}
$controller->missingController = $params['controller']; $controller->missingController = $params['controller'];
$controller->webroot = $this->webroot; $controller->webroot = $this->webroot;
return $this->_invoke($controller, $params ); return $this->_invoke($controller, $params );