我正在使用 yii2-fullcalendar 小部件,并使用thiagotalma 在 github 上的帖子作为安装日历小部件的指南。下面是我用来在页面上显示日历的代码:
<?= \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' => 'en-ca', // optional, if empty get app language
],
]); ?>
上面的代码在网页上显示日历。现在,我想显示数据库中的事件,但我不知道该怎么做。有人可以帮我解决这个问题吗?提前致谢。