addItem((new CTableInfo())->setNoDataMessage($data['error'])); } else { foreach ($data['vars'] as $name => $value) { $view->setVar($name, $value); } } $view->show();