src/Http/Response.php
/**
	 * Renders a view to the response.
	 *
	 * @param string $templateName
	 * @param array $context
	 */
Renders a view to the response.
@param string $templateName
@param array $context
Renders a view to the response . @param string $templateName @param array $context
public function view($templateFile, array $context = array()) {
		$variables = $this->buildContextVariables($context);
		$view = new Template($templateFile, $variables);
		$content = $view->render();
		if (!$this->isHalted()) {
			$this->content .= $content;
		}
	}
public function view ( $ templateFile , array $ context = array ( ) ) { $ variables = $ this -> buildContextVariables ( $ context ) ; $ view = new Template ( $ templateFile , $ variables ) ; $ content = $ view -> render ( ) ; if ( ! $ this -> isHalted ( ) ) { $ this -> content .= $ content ; } }
Renders a view to the response.
Renders a view to the response .