Create Simple Pdf/excel Document

Hie All,

    I want to create a simple PDF / Excel file for the date i have created in my web app.When I fill a form it gets stored in database I want to create the pdf file or excel doc for that.

Can anyone provide the code for it.

Thank You…

Checkout different extensions for that,you can use tcpdf for pdf and phpexcel for excel,checkout them from extensions of yii,download it and use it.

Hie can you provide me code for it and steps also because I am new to this framework.

Thank You…