how do I render a yii view in a 3rd party app

I am using the following code:


$app = Yii::createWebApplication($config);

to create a mini site away from my yii-driven main site (3rd party app sort-of:

how can I render a view from my yii-main site into the mini site?

I have been using:

$content= $controller->renderInternal(Yii::app()->basePath . '/modules/page/views/default/pages/clients.php');

but that does not show any jquery created on the views

i have no solution for this, but i spot one error, according to the documentation

per default nothing is returned:

so your $content is always empty