Hello Friends,
If you are looking to implement calendar in Symfony2 by FormBuilder(). Please use the code below and make changes accordingly.
Please open your controller function
$filterform = $this->createFormBuilder()
->setMethod('POST')
->add('start_date', 'date', array('input' => 'timestamp','widget' => 'choice', 'label' => 'From', 'data' => $stDate))
->getForm();
// When you implement $filterform in your view file calendar will show the calendar
0 Comment(s)