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

I am using the following code:




require_once($yii);

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



to create a mini site away from my yii-driven main site (3rd party app sort-of: http://www.yiiframework.com/doc/guide/1.1/en/extension.integration#using-yii-in-3rd-party-systems).

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:

http://www.yiiframework.com/doc/api/1.1/CBaseController#renderInternal-detail

so your $content is always empty