src/bundles/UI/Form.php
public static function start( $key, $attr = array() )
	{
		$attributes = array();

		// force the form role
		$attributes['role'] = 'form';

		if ( !is_null( $key ) )
		{
			 static::$id_prefix = $attributes['id'] = static::form_id( 'form', $key );
		}

		$attributes = array_merge( $attributes, $attr );

		return '<form'.HTML::attr( $attributes ).'>';
	}
public static function start( $key, $attr = array() )
	{
		$attributes = array();

		// force the form role
		$attributes['role'] = 'form';

		if ( !is_null( $key ) )
		{
			 static::$id_prefix = $attributes['id'] = static::form_id( 'form', $key );
		}

		$attributes = array_merge( $attributes, $attr );

		return '<form'.HTML::attr( $attributes ).'>';
	}
public static function start ( $ key , $ attr = array ( ) ) { $ attributes = array ( ) ; // force the form role $ attributes [ 'role' ] = 'form' ; if ( ! is_null ( $ key ) ) { static :: $ id_prefix = $ attributes [ 'id' ] = static :: form_id ( 'form' , $ key ) ; } $ attributes = array_merge ( $ attributes , $ attr ) ; return '<form' . HTML :: attr ( $ attributes ) . '>' ; }
Open a new form
This will set the current form to this one

@param string			$key
@param array 			$attr
@return string
Open a new form This will set the current form to this one