Welcome Guest, Not a member yet? Register   Sign In
dompdf as helper instead of plugin - CI 2.x
#2

[eluser]uk81[/eluser]
I changed my code now in that way, that dompdf is a helper.
I do it in the same way as for the plugins (s. the wiki: http://codeigniter.com/wiki/PDF_generati...ng_dompdf/ ) but in the /application/helper/ directory.

Just put dompdf there in a extra directory called "dompdf" and rename the "to_pdf_pi.php" to "to_pdf_helper.php".

Now it works.


But would be nice to get answer anyway for the question if it is like intended or if there is a "better" way to use a external library.

Thanks for all suggestions.

/Ulf


Messages In This Thread
dompdf as helper instead of plugin - CI 2.x - by El Forum - 06-01-2011, 02:00 AM
dompdf as helper instead of plugin - CI 2.x - by El Forum - 06-01-2011, 05:43 AM
dompdf as helper instead of plugin - CI 2.x - by El Forum - 06-01-2011, 01:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB