Can't Connect The External Library Into Yii.

Hi to all!

So, here is what is my problem: I need to properly connect PHPRtfLite (Lib is here…) with Yii Framework. PHPRtfLite is a library, which can generate .rtf documents. I need it, because the data from my website form must be insert into .rtf document.

Help, please, with correctly connecting with the library. And please tell me where I have to use the code to create the document - in model, controller or view?

For example, $name - it’s one of fields in form. How to put the value of this field in the document?

I would be very grateful for the help and explanation with examples. Thanks.