Rendering Views From Console App

I have a console app that dispatches emails from the system. I wanted to build the email structure so that I can take advantage of Yii’s layout and views, so I can create an emailLayout, and then have many different views whether it’s a friend request, or any other notification.

How would I go about doing this?

It seems like widgets are not accessible and neither is render or renderPartial.

Thanks for any help.

Kind of a late reply, but I ran in to this issue as well…

I noticed CConsoleCommand has this method: