CodeIgniter Third party class not loading

后端 未结 3 1773
生来不讨喜
生来不讨喜 2021-02-04 09:00

I am trying to implement Dashboard widget class (found here: http://harpanet.com/programming/php/codeigniter/dashboard/index#installation) but it is giving me error Unable

3条回答
  •  太阳男子
    2021-02-04 09:59

    I am using PDF Parser from http://pdfparser.org/

    I create files application/libraries/pdf.php

    class Pdf
    {
        public function __construct()
        {
            require_once APPPATH."/third_party/pdfparser.php";
        }
    }
    

    Then I create file application\third_party\pdfparser.php

    if (!defined('pdfparser')) {
        define('pdfparser', dirname(__FILE__) . '/');
        require(pdfparser . 'pdfparser/autoload.php');
    }
    

    Last, I include PDF Parser Library in Directory => application\third_party\pdfparser

提交回复
热议问题