Form.php
public static function label($input, $text, array $attributes = null)
    {
        // Set the label target
        $attributes['for'] = $input;

        return '<label'.Html::attributes($attributes).'>'.$text.'</label>';
    }
public static function label($input, $text, array $attributes = null)
    {
        // Set the label target
        $attributes['for'] = $input;

        return '<label'.Html::attributes($attributes).'>'.$text.'</label>';
    }
public static function label ( $ input , $ text , array $ attributes = null ) { // Set the label target $ attributes [ 'for' ] = $ input ; return '<label' . Html :: attributes ( $ attributes ) . '>' . $ text . '</label>' ; }
Creates a form label.

echo Form::label('username', 'Username');

@param string $input      Target input
@param string $text       Label text
@param array  $attributes HTML attributes
@uses   Html::attributes
@return string
Creates a form label .