|
|
|
@ -60,16 +60,16 @@ class BaseController |
|
|
|
unset($file); |
|
|
|
unset($file); |
|
|
|
unset($method); |
|
|
|
unset($method); |
|
|
|
|
|
|
|
|
|
|
|
$classNameIn = "\\Project\\Classes\\Inputs\\{$saferRootFolder}\\{$saferFile}"; |
|
|
|
$classNameIn = "\\Project\\Classes\\Inputs\\{$saferRootFolder}\\{$saferFile}Input"; |
|
|
|
$this->inputs = $classNameIn::$saferMethod($this->request); |
|
|
|
$this->inputs = $classNameIn::$saferMethod($this->request); |
|
|
|
|
|
|
|
|
|
|
|
// Logic might not always exist, so check. |
|
|
|
// Logic might not always exist, so check. |
|
|
|
$classNameLogic = "\\Project\\Classes\\Logic\\{$saferRootFolder}\\{$saferFile}"; |
|
|
|
$classNameLogic = "\\Project\\Classes\\Logic\\{$saferRootFolder}\\{$saferFile}Logic"; |
|
|
|
if (method_exists($classNameLogic, $saferMethod)) { |
|
|
|
if (method_exists($classNameLogic, $saferMethod)) { |
|
|
|
$classNameLogic::$saferMethod($this); |
|
|
|
$classNameLogic::$saferMethod($this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$classNameOut= "\\Project\\Classes\\Outputs\\{$saferRootFolder}\\{$saferFile}"; |
|
|
|
$classNameOut= "\\Project\\Classes\\Outputs\\{$saferRootFolder}\\{$saferFile}Output"; |
|
|
|
return $classNameOut::$saferMethod($this); |
|
|
|
return $classNameOut::$saferMethod($this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|