reports: Fix id of custom date selector
[ninja.git] / application / helpers / pdf.php
blobc097efba3ea8ed2311c82dd6eb98f8f904e565b9
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * PDF help class
4 */
5 class pdf_Core
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;