News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Code2Learn.com:
Generating PDF files from Database using CodeIgniter
February 29, 2012 @ 12:07:33

On the Code2Learn blog there's a recent tutorial about creating PDFs from CodeIgniter using the R&OS PDF class (not bundled with the framework, but easy to integrate).

As a programmer I find PDF files very helpful to me when generating reports and getting them printed. We will be using R&OS pdf class. I find this to be the best one because all others libraries I came across didn't offer me a good control over the making of the file and also the process of making i.e the code required for this library is bit tricky but it helped me improve my coding.

Code is included to create a simple PDF helper class that creates a new "cezpdf" object and add some basic things like titles, page numbers and some basic footer text. A simple controller is included that pulls the information from a database table (in their case a record of logins) and pushes this data into the PDF as lines of text.

0 comments voice your opinion now!
codeigniter framework pdf class helper pdf generate database


blog comments powered by Disqus

Similar Posts

Lukas Smith\'s Blog: php|tek wrap up

H3rald.com: Akelos Framework - too good to be true?

Symfony-Reloaded.org: Bundle Best Practices

The Bakery: Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)

WebReference.com: Creating a Custom RSS Feed with PHP and MySQL


Community Events











Don't see your event here?
Let us know!


composer performance security symfony2 facebook component language series database hack application release introduction install package podcast framework unittest opinion hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework