Vegas CMF Form Elements

Vegas\Forms\Element\Datepicker

Simple input with bootstrap-datetimepicker. By default, date will be saved as timestamp.

All required js and css files are included in vegas library. Check installation guide for more details.

Configuration

namespace Foo\Forms;

use Vegas\Forms\Element\Datepicker;

class Bar extends \Vegas\Forms\Form
{
    public function initialize()
    {
        $date = new Datepicker('date');
        $date->getDecorator()->setTemplateName('jquery');
        $this->add($date);

        // ...
    }
}