Development

#2304 ([sfDomPDFPlugin][PATCH] doesn't seem to work right)

You must first sign up to be able to contribute.

Ticket #2304 (assigned defect)

Opened 1 year ago

Last modified 8 months ago

[sfDomPDFPlugin][PATCH] doesn't seem to work right

Reported by: David.Werner Assigned to: temsse79 (accepted)
Priority: major Milestone:
Component: sfDomPDFPlugin Version: 1.0.7
Keywords: sfDomPDFPlugin Cc:
Qualification: Unreviewed

Description

Hello,

perhaps it is my fault, and I shouldn't create a ticket. But perhaps something isnt right with this plugin. I can't install the sfDomPDFPlugin properly.

I used this instructions: http://trac.symfony-project.com/wiki/sfDomPDFPlugin, and invoked a

symfony plugin-install http://plugins.symfony-project.com/sfDomPDFPlugin

So far so good. But when I execute the example at the line

$q = new sfDomPDFPlugin($invoice);

my sf throws this error:

Fatal error: Class 'sfDomPDFPlugin' not found in /vserver/xxxxx/apps/samt/apps/frontend/modules/validationReq uest/actions/actions.class.php on line 265

What is the problem? Should the classes be includes automatically? I did a clear-cache but without result. Do i need to set the include_path manually? If yes, this needs to be stated in the wiki.

Attachments

sfDomPDFPlugin.diff (8.0 kB) - added by temsse79 on 12/20/07 12:40:49.

Change History

10/02/07 16:04:39 changed by skr68

forgot?

symfony cc

10/11/07 13:43:54 changed by David.Werner

No I did that (see above). I did a clear-cache.

(in reply to: ↑ description ) 10/18/07 12:36:44 changed by hvikash

  • priority changed from minor to major.

Still does not work !!

11/06/07 21:36:16 changed by DrCore

I got this plugin to work When I moved the 'sfDomPDFPlugin.class.php' file in the lib directory of the plugin. I think the current file structure is not compatible with Symfony standards.

12/20/07 12:40:49 changed by temsse79

  • attachment sfDomPDFPlugin.diff added.

12/20/07 12:42:27 changed by temsse79

  • owner changed from fabien to temsse79.
  • status changed from new to assigned.
  • qualification changed from Unreviewed to Accepted.
  • summary changed from sfDomPDFPlugin doesn't seem to work right to [PATCH] sfDomPDFPlugin doesn't seem to work right.

sfDomPluginPDF.class.php was not on the lib folder.

It was also needed to update the config_file line from: private $config_file = 'lib/dompdf/dompdf_config.inc.php';

to: private $config_file = 'dompdf/dompdf_config.inc.php';

See patch attached.

12/20/07 12:46:35 changed by temsse79

  • qualification changed from Accepted to Ready for core team.

12/20/07 15:12:06 changed by lking

  • component changed from plugins to sfDomPDFPlugin.
  • summary changed from [PATCH] sfDomPDFPlugin doesn't seem to work right to [sfDomPDFPlugin][PATCH] doesn't seem to work right.

12/27/07 09:17:05 changed by fabien

  • qualification changed from Ready for core team to Unreviewed.