Inside my view I write some javascript code that inside has php code also
<script type="text/javascript">
var mytext='<?php echo yii::t('main','Select files.')?>'
var imgbases='<?php echo Yii::app()->request->baseUrl?>'
function funcOpen (branch, response) {
// Ici tu peux traiter le retour et retourner true si
// tu veux insιrer les enfants, false si tu veux pas
return true;
}......
How can I use the $cs->registerScript with that code?