How to render file in CConsoleApplication?

Dear all,

I’m developping a console application to manage objects at server side.

The code is shared by the console application and the web application.

I need to send email and do other things (createUrl, render) which need a CController object.

But this is only available for the web app.

renderFile() is only available in CConsoleCommand.

What can I use to make theses operations?

The guide for console applications:

Thanks for your replies.

Have you found an answer ?

I’m also interested in doing this.

I had to write my own helper : . I used some code from Yii and Yii requirements.