Monthly Archives: January 2018

API Control Vimeo videos (play and mute) with Flex slider

Plugin: https://github.com/tanepiper/vimeo-froogaloop2/tree/master/javascript

 

SendGrid API Example

Doc: https://github.com/sendgrid/sendgrid-php

Complete example:
https://github.com/sendgrid/sendgrid-php/blob/master/USE_CASES.md#attachments

Example:

 

TCPDF

Doc: https://tcpdf.org/docs/srcdoc/tcpdf/class-TCPDF/

Note:

  • HTML裡面的圖片網址一定要是完整路徑,不能是localhost, 否則輸出會有”unable to get the size of the image” error
    crontab執行的時候,base_url()就是抓到localhost,所以要注意

Example:

 

Reference: