[Form] added a FileField
This commit is contained in:
parent
c53ebe7a8e
commit
40c0fe854f
27
src/Symfony/Component/Form/FileField.php
Normal file
27
src/Symfony/Component/Form/FileField.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A file field to upload files.
|
||||
*/
|
||||
class FileField extends InputField
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function render(array $attributes = array())
|
||||
{
|
||||
return parent::render(array_merge(array(
|
||||
'type' => 'file',
|
||||
), $attributes));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user