[Form] added a FileField

This commit is contained in:
Fabien Potencier 2010-09-09 15:47:44 +02:00
parent c53ebe7a8e
commit 40c0fe854f

View 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));
}
}