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: 
You might want to look at [renderInternal](http://www.yiiframework.com/doc/api/1.1/CBaseController#renderInternal-detail) which I've used in custom class functions, etc. It can be called like:

```
$ccc = new CController('context');
$html = $ccc->renderInternal($view_file_string, array('data'=>$data), true);

```
[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