dqaxw44567 2011-05-03 13:03
浏览 34

在Symfony Form类中获取提交字段的值

In symfony how I will get the value of $_REQUEST in a form class. I am getting the value of all form fields in action.class.php and templates. While submitting a form and it is validating I need to get the value of some form field. Please help me!

  • 写回答

2条回答 默认 最新

  • dongyuxin5353 2011-05-03 13:07
    关注

    How about using this?:

    sfContext::getInstance()->getUser()->getAttribute('your_widget_field_name');

    评论

报告相同问题?

悬赏问题

  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 spring后端vue前端
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题