機能要望 > その他 > 会員登録に関して |
その他
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
yoshisan |
投稿日時: 2016/7/6 18:00
対応状況: −−−
|
常連 登録日: 2016/4/11 居住地: 投稿: 52 |
Re: 会員登録に関して shhirose様
ご回答ありがとうございます。 1点お聞きしたいのですが、 'required' を false から true に変更まではできたのですが、 最後の「new Assert\NotBlank()」を追加はどのように追加したらいいでしょうか? 場所を教えて頂ければ幸いです。 よろしくお願い致します。 ->add('birth', 'birthday', array( 'required' => true, 'input' => 'datetime', 'years' => range(date('Y'), date('Y') - $this->config['birth_max']), 'widget' => 'choice', 'format' => 'yyyy/MM/dd', 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), 'constraints' => array( new Assert\LessThanOrEqual(array( 'value' => date('Y-m-d'), 'message' => 'form.type.select.selectisfuturedate', )), ), )) |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
会員登録に関して | yoshisan | 2016/7/6 16:31 |
Re: 会員登録に関して | shhirose | 2016/7/6 17:43 |
» Re: 会員登録に関して | yoshisan | 2016/7/6 18:00 |
Re: 会員登録に関して | shhirose | 2016/7/6 18:16 |
Re: 会員登録に関して | yoshisan | 2016/7/6 18:44 |