Current actioncontroller will show the index action if the action is invalid.
if you wish to handle the action explicitly, like load a Page Not Found view, do this.
Add the following lines before "} elseif(method_exists($this->controller_object, "index")) {"
} elseif(method_exists($this->controller_object, "no_route") and $this->action != '') {
//error_log('calling action routine '
// . get_class($this->controller_object)
// .'::index() with params '
// .var_export($this->action_params,true));
$action = "no_route";
$this->controller_object->no_route($this->action_params);
} elseif.....
|
So it's like
} elseif(method_exists($this->controller_object, "no_route")) {
............
} elseif(method_exists($this->controller_object, "index")) {
.......
}
Now, you can do whatever you want by creating a no_route action in your controller.