symfony form bookに新しいページ
Today, I have added more than 40 pages in two new appendices to the symfony forms book: one about form widgets and the other about validators. These appendices describe all built-in widgets and validators, and also widgets and validators from sfPropelPlugin, sfDoctrinePlugin and sfFormExtraPlugin.
symfony1.1以降では必須のsfFormですが、そのドキュメントであるsymfony form bookに新しいページが追加されました。
ざっとみたところ、各widgetとvalidatorの解説がついたAPIといった感じですね。
こういうページがあると、ページ内でgrepしながら欲しい情報を探せるので便利です。symfonyのAPIのページは。。。ですから。。
また、'all built-in widgets and validators'と書いているのですが、sfValidatorFromDescriptionという掲載されていないバリデーションとかあったりするんですが。。
このバリデーションは次のように文字列で定義を渡してあげればバリデーションを作ってくれるみたいなんですけどね。(テストファイルを見ただけで未確認)
'age:Integer and({required: true}, {invalid: "This is invalid."}) password:String'