PHP code example of quexer69 / yii-gcal-flow

1. Go to this page and download the library: Download quexer69/yii-gcal-flow library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

quexer69 / yii-gcal-flow example snippets


'modules' => array(
        'gCalFlow' => array(
            'class' = 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget',
        ),


    $this->widget('vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget');



    $this->widget('GCalFlow',
           array(
               'calandarId'             => 'YOUR_GOOGLE_CALENDAR_ID',
               'maxitem'                => 6,
               'mode'                   => 'upstream',                          // [upcoming | updates]
               'no_items_html'          => '<span>No Events availible!</span>', // HTML for empty calendar
               'link_item_title'        => true,
               'link_item_description'  => false,
               'auto_scroll'            => true,
               'height'                 => '300px',                             // css height of the #gcf-container
               'width'                  => '100%',                              // css width of the #gcf-container
               'debug'                  => false,                               // turn on debug console
           )
    );


'p3widgets' => array(
        'params' => array(
            'widgets' => array(
                ...
                'GCalFlow.components.GoogleCalendarWidget' => 'Google Calendar List Widget'
        ),
        ...