1
This commit is contained in:
parent
522ea447ab
commit
3d966c69ed
@ -42,8 +42,16 @@ try{
|
||||
$classname = $c .'Controller';
|
||||
$beginTick = phpcommon\getTickCount();
|
||||
$obj = eval('return new $classname();');
|
||||
$method = new ReflectionMethod($classname, $a);
|
||||
$methodS = new ReflectionMethod($classname, $a . 'S');
|
||||
$method = null;
|
||||
try {
|
||||
$method = new ReflectionMethod($classname, $a);
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
$methodS = null;
|
||||
try {
|
||||
$methodS = new ReflectionMethod($classname, $a . 'S');
|
||||
} catch (Exception $e){
|
||||
}
|
||||
if (isValidActionAction($a, $method)) {
|
||||
$obj->_handlePre();
|
||||
$method->invoke($obj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user