<?php
$url=$this->createUrl('file/setfield',
array('id'=>$model->file_id, 'fld'=>''));
Yii::app()->clientScript->registerScript("refresh","
$('#panel').click(function(){
$.ajax({
'url':'".$url."',
'type':'GET',
'dataType':'json',
'success':function(data){
$('#panel').html(data);
}
});
});
");
?>
<div id="panel">...</div>
Yii Справочник v0.05 © 2007-2024 Igor Salnikov aka SunDoctor