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: http://www.yiiframework.com/doc/guide/topics.console

Thanks for your replies.

Have you found an answer ?

I’m also interested in doing this.

I had to write my own helper : http://bazaar.launchpad.net/~datum/datum/trunk/annotate/head%3A/protected/components/helpers/Html.php#L450 . I used some code from Yii and Yii requirements.