implementing the ProcessProxy controller

This commit is contained in:
Erik Amaru Ortiz
2011-02-26 22:57:37 +00:00
parent 186c341d16
commit 228d49dd6b
5 changed files with 21 additions and 29 deletions

View File

@@ -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();