我发现了问题所在,只需切换此选项:
function column_default($item, $column_name){
switch($column_name){
case \'rating\':
case \'director\':
return $item[$column_name];
default:
return print_r($item,true); //Show the whole array for troubleshooting purposes
}
}
对此:
function column_default($item, $column_name){
switch($column_name){
case \'id\':
return $item[\'plan_id\'];
case \'plano\':
return $item[\'plan_name\'];
case \'dias\':
return $item[\'plan_days\'];
case \'valor\':
return \'R$ \' . number_format($item[\'plan_price\'], 2 ,\',\',\'.\');
default:
return print_r($item,true); //Show the whole array for troubleshooting purposes
}
}