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);