form::file PHP Méthode

file() public static méthode

public static file ( $name, $attributes = [] )
    public static function file($name, $attributes = array())
    {
        return static::input('file', $name, '', $attributes);
    }

Usage Example

Exemple #1
0
function meta_custom()
{
    $form = new form('details', null);
    $form->text('name', array('label' => 'Text Field'));
    $form->image('image', array('label' => 'Image Field', 'button' => 'Add Your Image'));
    $form->file('file', array('label' => 'File Field', 'button' => 'Select a File'));
    $form->textarea('address', array('label' => 'Textarea', 'validate' => 'html'));
    $form->select('rooms', array('one', 'two', 'three'), array('label' => 'Select List'));
    $form->radio('baths', array('blue', 'green', 'red'), array('label' => 'Radio Buttons'));
    $form->editor('baths', 'WYSIWYG Editor');
}
All Usage Examples Of form::file