lithium\template\helper\Form::end()

public method

Echoes a closing </form> tag and unbinds the Form helper from any Record or Document object used to generate the corresponding form.

Returns

string

Returns a closing </form> tag.

Filter

This method can be filtered.

Source

	public function end() {
		list(, $options, $template) = $this->_defaults(__FUNCTION__, null, []);
		$params = compact('options', 'template');

		$result = Filters::run($this, __FUNCTION__, $params, function($params) {
			$this->_bindingOptions = [];
			return $this->_render('end', $params['template'], []);
		});
		unset($this->_binding);
		$this->_binding = null;
		return $result;
	}