akorinek / yii2-fullcalendar
用于在 Yii Framework 2.0 中使用 FullCalendar 的 Widget
2.0.0
2014-11-07 11:32 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-19 16:08:19 UTC
README
用于在 Yii Framework 2.0 中使用 FullCalendar
安装
安装此扩展的首选方式是通过 composer。
可以运行
php composer.phar require --prefer-dist thiagotalma/yii2-fullcalendar "*"
或者添加
"thiagotalma/yii2-fullcalendar": "*"
到你的 composer.json
文件的 require 部分。
用法
扩展安装完成后,只需在代码中通过
<?= \talma\widgets\FullCalendar::widget([ 'googleCalendar' => true, // If the plugin displays a Google Calendar. Default false 'loading' => 'Carregando...', // Text for loading alert. Default 'Loading...' 'config' => [ // put your options and callbacks here // see http://arshaw.com/fullcalendar/docs/ 'lang' => 'pt-br', // optional, if empty get app language ... ], ]); ?>