Suggestion

Phoca PDF - creating PDF documents in Joomla! CMS
szablac
Phoca Member
Phoca Member
Posts: 19
Joined: 22 Feb 2009, 00:10
Location: Hungary
Contact:

Suggestion

Post by szablac »

Hi Jan,
To help those developers who want to integrate with Phoca PDF, there should be one more error handling case in phocapdfrender.php around line cca. 136.
Something similar:

Code: Select all

default:
	$dispatcher   = JDispatcher::getInstance();
	if (JPluginhelper::isEnabled('phocapdf',strtolower($t))){
		JPluginHelper::importPlugin( 'phocapdf' );
		$results = $dispatcher->trigger('onBeforeDisplayPDF'.$t, array (&$pdf, &$content, &$document));
	} else {
		return JError::raiseError('PDF ERROR', 'Phoca PDF - '.$t.' plugin is disabled or not installed'); 
	}
	break;
Rgds
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Suggestion

Post by Jan »

Hi, thank you for the info, I will do tests and will try to implement it into the next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply