implementing the ProcessProxy controller
This commit is contained in:
@@ -42,13 +42,13 @@ class HttpProxyController {
|
||||
return $this->__data__[$name];
|
||||
}
|
||||
|
||||
$trace = debug_backtrace();
|
||||
/*$trace = debug_backtrace();
|
||||
trigger_error(
|
||||
'Undefined property via __get(): ' . $name .
|
||||
' in ' . $trace[0]['file'] .
|
||||
' on line ' . $trace[0]['line'],
|
||||
E_USER_NOTICE);
|
||||
return null;
|
||||
return null;*/
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,10 +79,11 @@ class HttpProxyController {
|
||||
*/
|
||||
public function call($name)
|
||||
{
|
||||
//echo __CLASS__;
|
||||
try {
|
||||
$this->$name($this->__request__);
|
||||
$result = $this->__data__;
|
||||
$result = $this->$name($this->__request__);
|
||||
if( ! $result )
|
||||
$result = $this->__data__;
|
||||
|
||||
} catch (Exception $e) {
|
||||
$result->success = false;
|
||||
$result->msg = $e->getMessage();
|
||||
|
||||
Reference in New Issue
Block a user