Create a file input Tag.
App::Html()->fileTag(Name,[Value],[Option]);
Parameter |
Description |
---|---|
Name |
Name of the Input element |
Value |
Button text |
Options |
HTML Attributes |
See bellow example:
echo App::Html()
->fileTag(
"data[Buttonl][photo]",
"",
array(
"id"=>"photo"
)
);
/*
Return value
<input type="file" name="data[Signup][photo]" value="" class="photo" />
*/