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);

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