setNoDataMessage($data['error']); } else { $item = new WidgetProblems($data); } (new CWidgetView($data)) ->addItem($item) ->show();