Render file from model

How do I can render file from Model?

You shouldn’t, as you break MVC. Do all rendering in your controller actions.

What do you mean by render file?

I have email tpl in view so I want to take content from that fail and make message and I want to do in Model or its wrong have better way ?

Sorry for broken English

Maybe one of the mailer extensions is more what you want:

http://www.yiiframework.com/search/extension?q=mailer

Thank you for replays

Yii::app()->controller->renderPartial()

this is I search

I use ext email

Can I call it when running from Console?