lithium\template\view\Renderer::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • view: The View object associated with this renderer.
    • strings: String templates used by helpers.
    • handlers: An array of output handlers for string template inputs.
    • request: The Request object associated with this renderer and passed to the defined handlers.
    • response: The Response object associated with this renderer.
    • context: An array of the current rendering context data, including content, title, scripts, head and styles.

Returns

void

Source

	public function __construct(array $config = array()) {
		$defaults = array(
			'view' => null,
			'strings' => array(),
			'handlers' => array(),
			'request' => null,
			'response' => null,
			'context' => array(
				'content' => '', 'title' => '', 'scripts' => array(),
				'styles' => array(), 'head' => array()
			)
		);
		parent::__construct((array) $config + $defaults);
	}