Spoon/Form — Issue #7: 'name' can not be used as textfield
Author: bauffman
Created: 2012-02-09 16:29:37+00:00
State: open

PHP code
--
$form = new Form(new Environment());
$form->setName('magic');
$form->setAction('index.php');
$form->addText('name', 'Davy Hellemans');

$tpl = new Spoon\Template\Template(new Spoon\Template\Environment(array('cache' => 'tmp')));
$tpl->assign('form', $form);
$tpl->render('index.tpl');

Template code
--
{$form|safe}
{$form.name}

This outputs: 'magic' instead of the expected input field :)