hesam/shamsi-date

Symfony Shamsi/Persian Date Picker Synced With DateTime ColumnIn Entity

dev-master 2020-03-27 16:54 UTC

This package is auto-updated.

Last update: 2024-03-28 02:58:31 UTC


README

Symfony Shamsi/Persian Date Picker Synced With DateTime ColumnIn Entity

Installatioan

composer require hesam/shamsi-date:dev-master

thene add bundle to kernel

\Hesam\ShamsiDate\ShamsiDateBundle::class => ['all' => true],

add these two lines to header of your template file :

<link href="{{ asset('bundles/shamsidate/style-1.css') }}" rel="stylesheet"/>
<script src="{{ asset('bundles/shamsidate/script-1.js') }}"></script>

and the bundle form theme to your config in config/packages/twig.yaml :

 form_themes: ['ShamsiDateBundle:Form:fields.html.twig']

then execute php bin/console assets:install Enjoy It.

Bug Report

send e-mail to me@hmirebrahimi.ir