public function __get($name)
{
// Handle $this->input
if ($name == 'input') {
return $this->container->input;
}
// Property not found; raise error
$trace = debug_backtrace();
trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_NOTICE);
return null;
}