$data['trafik'] = new stdClass;
This shows me error:
Class 'App\Controllers\stdClass' not found
Your current code is within a namespace, you can access stdClass from the root namespace like this:
$data['trafik'] = new \stdClass;