dongxi6897 2015-03-11 17:33 采纳率: 0%
浏览 84

Yii2高级模板日历小部件:显示来自数据库的事件

I'm using yii2-fullcalendar widget and I used thiagotalma's post on github as a guide for the installation of the calendar widget. Below is the code that I've used to display the calendar on the page:

<?= \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

        ],
    ]); ?>

and the above code displays the calendar on the web page. Now, I want to display the events from database but I don't have any idea how to do it. Can anyone help me regarding this matter? Thanks in advance.

  • 写回答

1条回答 默认 最新

  • duanlinjian5819 2017-05-11 00:56
    关注

    You might want to look into my calendar view widget, looks like it's bang on. Takes data from your model and puts them into a responsive calendar.

    I am the author btw. Should be simple enough if you read through the readme, it's step by step.

    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向