开发者

how get in NameForm.class.php own value?

开发者 https://www.devze.com 2023-03-31 01:05 出处:网络
In template i add own input hidden? <form action ....> 开发者_开发百科 <input type=\"hidden\" name=\"hidd\" id=\"hidd\" value=\"test\">

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

精彩评论

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