title: Yii2 Advanced Template Calendar Widget: Display events from database
body: <p>I'm using yii2-fullcalendar widget and I used <a href="https://github.com/thiagotalma/yii2-talma-fullcalendar-widget#yii2-talma-fullcalendar-widget" rel="nofollow">thiagotalma's post on github</a> 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:</p>
  
  <pre><code>&lt;?= \talma\widgets\FullCalendar::widget([
          'googleCalendar' =&gt; true,  // If the plugin displays a Google    Calendar. Default false
          'loading' =&gt; 'Carregando...', // Text for loading alert. Default 'Loading...'
          'config' =&gt; [
              // put your options and callbacks here
              // see http://arshaw.com/fullcalendar/docs/
              'lang' =&gt; 'en-ca', // optional, if empty get app language
  
          ],
      ]); ?&gt;
  </code></pre>
  
  <p>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.</p>