. **/ /** * Data overview widget view. * * @var CView $this * @var array $data */ if ($data['error'] !== null) { $table = (new CTableInfo())->setNoDataMessage($data['error']); } else { $table = $data['style'] == STYLE_TOP ? (new CPartial('table.top', $data))->getOutput() : (new CPartial('table.left', $data))->getOutput(); } (new CWidgetView($data)) ->addItem($table) ->show();