html2pdf - "Can not buid tree with empty xml" getting error using html2ps in cakephp 2.3.8 -
i got error when tried download pdf. seems code expect xml string echo screen before pdf created.
did miss in setup? have followed steps explained website http://bakery.cakephp.org/articles/casmo/2010/06/26/creating-pdf-files-with-html2ps-html2pdf.
hi pankaj,
cakephp2.3.x folder name changed "vendor" "vendor". why getting error..
cakephp 1.3.x : in pdfcomponent using
// include class file , create html2ps instance
app::import('vendor', 'html2psconfig', array('file' => 'html2ps'.ds.'config.inc.php')); app::import('vendor', 'html2ps', array('file' => 'html2ps'.ds.'pipeline.factory.class.php')); parse_config_file(app .'vendors'. ds .'html2ps'. ds .'html2ps.config');
cakephp 2.3.x : in pdfcomponent have change code same bellow..
// include class file , create html2ps instance
app::import('vendor', 'html2psconfig', array('file' => 'html2ps'.ds.'config.inc.php')); app::import('vendor', 'html2ps', array('file' => 'html2ps'.ds.'pipeline.factory.class.php')); parse_config_file(app .'vendor'. ds .'html2ps'. ds .'html2ps.config');
try may helpful you.. :-)
Comments
Post a Comment