Question: How can I call this method in Yii Framework:

```
$this->renderPartial(string $fileNameToRenderData, bool $wheaterToReturnOrEchoDirectly);

```

Statically, like this:

```
GodForbiddenClassName::renderPartial(string $fileNameToRenderData, bool $wheaterToReturnOrEchoDirectly);

```

Answer: 
It seems that this is impossible, since rendering is performed representations "on behalf" of the controller (or successor CBaseController)

But, in console application mode you can use this: 

```
CConsoleCommand->renderFile()

```

See <http://www.yiiframework.com/doc/api/1.1/CConsoleCommand>
[Check this yii wiki article](http://www.yiiframework.com/wiki/556/email-template-functionality-with-manage-content-from-database/) written by me .. :)

====>>> $emailTemplate = $this->renderPartial('template/templatecontact',array(),true); //Getting email template content