how get in NameForm.class.php own value?
In template i add own input hidden?
<form action ....>
开发者_开发百科
<input type="hidden" name="hidd" id="hidd" value="test">
<?php echo $form['name'];
echo $form['last'];
?>
</form>
in NameForm.class.php i can $this->getValue('name') but $this->getValue('hidd') doesnt work. how can i make this in Symfony 1.4?
you can set in the action $this->formName = $form->getName();
and afterwards <?php echo $formName; ?>
in your template
精彩评论