Symfony嵌入式表单 - 可能不显示嵌入式表单的“父”标签?(Symfony embedded form - possible to NOT show embedded form's “parent” label?)
在Symfony中嵌入表单时,嵌入表单的标签被注入到父表单中。 例如:如果我有一个
PersonForm
并添加此代码$this->embedForm('Address', $addressForm)
,我的PersonForm
现在将在其中包含一个“地址”标签,除了组成字段的标签AddressForm
。 我想保留单个字段的标签,但要删除“地址”标签,从而表明这两种形式确实是一种。可以重写表单模板并手动遍历表单元素并逐个回显,但我经常遇到这种情况,我宁愿让Symfony自动处理它。
When you embed a form in Symfony, a label for the embedded form is injected into the parent form. For example: If I have a
PersonForm
and add this code$this->embedForm('Address', $addressForm)
, myPersonForm
will now have an 'Address' label within it, in addition to the labels for the fields that make up theAddressForm
. I'd like to keep the labels for the individual fields, but get rid of the 'Address' label, thereby making it appear that the two forms are really one.It's possible to override the form template and manually iterate over the form elements and echo them one by one, but I run into this situation frequently and I'd prefer to have Symfony handle this automatically.
原文:https://stackoverflow.com/questions/6426837
满意答案
感谢Claus和Namphibian,这实际上是对你们双方建议的用于映射windows文件夹的服务帐户的写访问权限的问题。 一旦我们提供了访问权限,它现在正在运行。 再次感谢。
Thanks Claus and Namphibian it was actually the issue with write access to the service account used to map the windows folder as suggested by by both of you. It's now working once we provided the access. Thanks Again.
相关问答
更多如何使用camel-exec在Linux中移动文件?(How do you move a file in Linux using camel-exec?)
Apache Camel不会在源文件夹中保留文件(Apache Camel does not retain file in source folder)
Vagrant错误:无法在Linux guest虚拟机中挂载文件夹(Vagrant error : Failed to mount folders in Linux guest)
在LINUX上使用Camel 2.10挂载文件夹文件(Mount folder file handling using Camel 2.10 on LINUX)
Apache Camel FTP 550删除linux中的文件时出错(Apache Camel FTP 550 Error while deleting the files in linux)
Camel中的文件读取问题(File read issue in Camel)
在Virtual Box上运行的Mint Linux中永久挂载共享文件夹(Permanently mount shared folder in Mint Linux running on Virtual Box)
根据文件夹内容暂停apache camel路由(Suspending an apache camel route depending of a folder content)
yii linux中的驼峰案例类文件名(yii camel case class filenames in linux)
Apache Camel处理后移动文件(Apache Camel move file after processing)
相关文章
更多《嵌入式开发(尚观科技)》(Embedded development)网络路由基础 ;已更新至第1集[MP4]
HTML5 智能form表单新属性
form load 的问题
《《Sundy--Android嵌入式底层开发课程共享版》《linux嵌入式系统开发.移植》》[压缩包]
深入嵌入式Java虚拟机
关于一个页面多个form问题????????
嵌入式实现 微信网页版 群发信息。
form中如何接收传入的值
ext里window里放form的布局?
《嵌入式linux视频教程/ARM视频教程/2440视频教程/6410视频教程》成都国嵌嵌入式培训中心的基于2440/6410开发板的视频教程[光盘镜像]
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!