Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想设置复选框以检查我从数据库中检索到的仅针对特定值呈现的表单。我可以在 jQuery 中做到这一点,但是 Symfony 中是否有任何特定的库函数?
建议请...
你可以试试这个......
在首先显示表单时,您还可以在设置时传递表单中的值
$this->samplevariable = YOURFORM($this->getYOURMODEL->setYOURFORMFIELDNAME(array of values(1,2,3) which u get form db getYOURFORMFIELDNAME);