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
Sorry to hear you were having problems, (I've only just noticed this SO entry). Thanks to ReNiSh for his workaround, much appreciated.
You do not however need to use the library approach to implement the 'require_once' of hDash. I have now written a walkthrough for getting hDash installed and running, which you can find here: http://harpanet.com/programming/php/codeigniter/dashboard/walkthrough
Also, note that as of yesterday, 3rd Feb 2014, hDash has been updated to version 1.2.
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
You have to create a library that initialize the third party class:
for Eg:
--in library create a file named mydash.php --
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MyDash
{
public function __construct()
{
require_once APPPATH.'third_party/hArpanet/hDash/libraries/dash.php';
}
}
load the library using:
$this->load->library('mydash');
then you are able to use the Dash class. Also able to load library in autoload.
Thank you...