это мой код:
function(id) {
id=$.fn.yiiGridView.getSelection(id);
console.log(id);
jQuery.ajax({
'url':'/index.php?r=client/loadOne',
'data':id,
'cache':false,
'success':function(html){jQuery(
".portlet-60 .portlet-content")
.html(html)}});
и выводит консоль:
["2"]
index.phpGET http://127.0.0.4/index.php?r=client/loadOne&undefined=undefined 500 (PHP Error)
Я не понимаю, почему id в консоли равен "2", bud в данных ajax не определен.