lithium\action\Controller::set()

public method

This method is used to pass along any data from the controller to the view and layout

Parameters

  • array $data

    sets of <variable name> => <variable value> to pass to view layer.

Returns

void

Source

	public function set($data = []) {
		$this->_render['data'] = (array) $data + $this->_render['data'];
	}