33 lines
801 B
PHP
33 lines
801 B
PHP
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
|
|
|
|
include_once APPPATH.'/vendor/autoload.php';
|
|
|
|
include_once APPPATH.'/vendor/smarty/smarty/libs/Smarty.class.php';
|
|
// include_once APPPATH.'/vendor/smarty/Smarty.php';
|
|
|
|
class MySmarty extends Smarty
|
|
{
|
|
|
|
|
|
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->MySmarty();
|
|
|
|
$this->template_dir = APPPATH."/views/report_templates";
|
|
$this->config_dir = APPPATH."/config";
|
|
$this->compile_dir = APPPATH."/pdreports";
|
|
|
|
$this->assign( 'FCPATH', FCPATH ); // path to website
|
|
$this->assign( 'APPPATH', APPPATH ); // path to application directory
|
|
$this->assign( 'BASEPATH', BASEPATH ); // path to system directory
|
|
//$this->caching = 0;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
?>
|