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.
TEXT-INPUT フィールド (属性 VALUE) を事前に定義したいと考えています。setupメソッドの他のオプションのsfWidgetFormInputTextでそれを行うことは可能ですか?
ドキュメントを読んでください。
class ContactForm extends BaseForm { public function configure() { // ... $this->setDefault('email', 'Your Email Here'); $this->setDefaults(array('email' => 'Your Email Here', 'name' => 'Your Name Here')); } }
あるドキュメントのobjectIDを属性(リンク)として別のドキュメントに保存しようとしていますが、mongoはこのエラーを出し続けます。この行の構文の何が問題になっていますか?
for u in self.request.db.lyrics.find(): u['for