Adding fix for #1173.

Component startup method or beforFilters not called when controller missing action

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3511 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-09-18 20:28:34 +00:00
parent eec9f66d74
commit 8760dce3ef

View file

@ -256,6 +256,7 @@ class Dispatcher extends Object {
$controller->constructClasses();
if ($missingAction && !in_array('scaffold', array_keys($classVars))){
$this->start($controller);
return $this->cakeError('missingAction', array(
array('className' => Inflector::camelize($params['controller']."Controller"),
'action' => $params['action'],
@ -265,6 +266,7 @@ class Dispatcher extends Object {
}
if ($privateAction) {
$this->start($controller);
return $this->cakeError('privateAction', array(
array('className' => Inflector::camelize($params['controller']."Controller"),
'action' => $params['action'],