I have a ajaxLink what send request to controller, where I return encoded json string:
return CJSON::encode(array(
'up' => ...,
'down' => ...,
));
In view, ajaxLink attributes:
'dataType' => 'json',
'success' => 'js: function(data) {
console.log(data); // equal to null
}'
What I am doing wrong ?