private $params = array(); private $error = ""; function __construct() { $this->params = $_REQUEST; } function addParam($key, $val) { $this->params[$key] = $val; } function get($key) { return $this->params[$key]; } function setError($error) { $this->error = $error; } function getError() { return $this->error; } } $controller = new Controller(); $context = $controller->getContext(); $context->addParam('action', 'feedback'); $context->addParam('email', '*****@*****.**'); $context->addParam('topic', 'my brain'); $context->addParam('msg', 'all about my brain'); $controller->process(); print $context->getError();