i dont understand what is wrong with below code, it is from the phrame actionController class.
$type = $actionMapping->getType();
$name = $type;
if ($pos = strrpos($type,"/")) // strip directory from $type here.
$name = substr($type,++$pos,strlen($type)-$pos);
// process search-path
if (!isset($this->options[ACTIONS_DIR])) $this->options[ACTIONS_DIR] = "actions/";
$separator = ":";
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $separator = ";";
$actionConfigDirs = explode($separator, $this->options[ACTIONS_DIR]);
foreach ($actionConfigDirs as $actionPath) {
if (!class_exists($type)) {
if (file_exists ( $actionPath."/$type.php" ))
require_once $actionPath."/$type.php";
} else break;
}
if (!class_exists($type)) {
trigger_error("Invalid Action '$name' type '$type'");
return;
}
echo "flag_1 br>";
$action = new $type();
echo "flag_2!<br>";
set_error_handler($this->_options[_ERROR_HANDLER]);
$actionForward = $action->perform($actionMapping, $actionForm);
restore_error_handler();
return $actionForward;
it is echo flag_1 but not flag 2 and class exists, what is wrong?