public function route()
	{
		$content = $this->_controller->{$this->_actionMethod}();

		if ($this->_controller->isJson()) {
			Request::setHeader(Request::HEADER_JSON);
			echo json_encode($content);
		} else {
			echo $content;
		}
	}
public function route()
	{
		$content = $this->_controller->{$this->_actionMethod}();

		if ($this->_controller->isJson()) {
			Request::setHeader(Request::HEADER_JSON);
			echo json_encode($content);
		} else {
			echo $content;
		}
	}
public function route ( ) { $ content = $ this -> _controller -> { $ this -> _actionMethod } ( ) ; if ( $ this -> _controller -> isJson ( ) ) { Request :: setHeader ( Request :: HEADER_JSON ) ; echo json_encode ( $ content ) ; } else { echo $ content ; } }
Route the request by invoking the corresponding controller and method.
Route the request by invoking the corresponding controller and method .