public function render(Render $renderer)
	{
		$legend = '';

		//Make sure the legend is added if needed
		if ( !is_null($this->getLegend()) )
		{
			$legend = Html::tag('legend', [], $this->getLegend());
		}

		//Makes sure the legend is added if one exists
		$elements = $legend;

		//Render all the elements
		foreach ( $this->getContents() as $element )
		{
			$elements .= "\n" . $renderer->render($element);
		}

		return Html::tag('fieldset', $this->getAttributes(), $elements);
	}
public function render(Render $renderer)
	{
		$legend = '';

		//Make sure the legend is added if needed
		if ( !is_null($this->getLegend()) )
		{
			$legend = Html::tag('legend', [], $this->getLegend());
		}

		//Makes sure the legend is added if one exists
		$elements = $legend;

		//Render all the elements
		foreach ( $this->getContents() as $element )
		{
			$elements .= "\n" . $renderer->render($element);
		}

		return Html::tag('fieldset', $this->getAttributes(), $elements);
	}
public function render ( Render $ renderer ) { $ legend = '' ; //Make sure the legend is added if needed if ( ! is_null ( $ this -> getLegend ( ) ) ) { $ legend = Html :: tag ( 'legend' , [ ] , $ this -> getLegend ( ) ) ; } //Makes sure the legend is added if one exists $ elements = $ legend ; //Render all the elements foreach ( $ this -> getContents ( ) as $ element ) { $ elements .= "\n" . $ renderer -> render ( $ element ) ; } return Html :: tag ( 'fieldset' , $ this -> getAttributes ( ) , $ elements ) ; }
Renders the Fieldset to html

@param  Render $renderer

@return string

@since 2.0
Renders the Fieldset to html