Added filterable to summary and histogram controllers
[ninja.git] / application / helpers / pdf.php
blob42616bcfc1b51c0551709ff9e501f48e4df5ba04
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * PDF help class
4 */
5 class pdf
7 /**
8 * Do PDF initiation
9 */
10 public function start()
12 $path = self::path();
13 if ($path !== false)
15 ini_set('include_path',
16 ini_get('include_path').PATH_SEPARATOR.dirname(dirname($path)));
17 require_once($path);
18 require_once(dirname($path).'/config/lang/eng.php');
19 return true;
21 return false;
24 /**
25 * Fetch TCPDF absolute path
27 public function path()
29 $path = Kohana::find_file('vendor', 'tcpdf/tcpdf');
30 return $path;