开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜