function output($o)
	{

		if (is_array($o)) {
			$this->response->setContent(json_encode($o));
			$this->response->headers->set('Content-Type', 'application/json');
			die();

		} else {
			$this->response->setContent($o);
		}
	}