mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
[1247]
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:
parent
550c5e22e9
commit
051fe48685
1 changed files with 8 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue