Zend form bootstrap annotation datepicker “Object provided to Escape helper, but flags do not allow recursion”

前端 未结 4 844
失恋的感觉
失恋的感觉 2021-01-24 07:04

I\'m using Zend framework with Bootstrap and ReverseForm adapter, and have an interesting problem with it: when I use Bootstrap Datepicker in Zend Form I\'ve the next exception:

4条回答
  •  鱼传尺愫
    2021-01-24 07:52

    This works for me.
    The value convert to date format will solve the issue.
    In your controller: write:

    $users['usrBirthday']=$user->getBirthday()->format('d-m-Y');
    $form->setData($users);
    $form->bind($user);     
    

提交回复
热议问题