I am using TCPDF
to create pdf in joomla
. I have include tcpdf.php
using require_once
and it is successfully included but when I am creating object of TCPDF
class gives fatel error: TCPDF class not found ;
Thanks
I am using TCPDF
to create pdf in joomla
. I have include tcpdf.php
using require_once
and it is successfully included but when I am creating object of TCPDF
class gives fatel error: TCPDF class not found ;
Thanks
You need to replace this code:
require_once(JURI::root().'tcpdf/tcpdf.php');
with
require_once(JPATH_ROOT . '/tcpdf/tcpdf.php');
Open the tcpdf_include.php file and change the $tcpdf_include_dirs array values (line 30) as per your requirement or just directly include the tcpdf.php
I did something like this and it working...
require_once('tcpdf.php')
my tcpdf_include.php and tcpdf.php files are in same folder.
hope this will help.