Skip to content

Commit

Permalink
[Form] added a FileField
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 9, 2010
1 parent c53ebe7 commit 40c0fe8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Symfony/Component/Form/FileField.php
@@ -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));
}
}

0 comments on commit 40c0fe8

Please sign in to comment.