本文整理汇总了PHP中CUtils::showError方法的典型用法代码示例。如果您正苦于以下问题:PHP CUtils::showError方法的具体用法?PHP CUtils::showError怎么用?PHP CUtils::showError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUtils
的用法示例。
在下文中一共展示了CUtils::showError方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setTableFields
private function setTableFields()
{
try {
if ($this->props['is_system']) {
$this->readConfig();
} else {
$this->readDBConfig();
}
} catch (Exception $e) {
echo CUtils::showError($e->getMessage());
}
if ($this->props['is_sort']) {
$this->fields['ord'] = array('name' => 'ord', 'title' => 'Сорт.', 'type' => 'number', 'width' => '5%', 'defvalue' => '500', 'group_update' => true);
}
if ($this->props['is_publish']) {
$this->fields['publish'] = array('name' => 'publish', 'title' => 'Акт.', 'type' => 'checkbox', 'search' => true, 'group_update' => true, 'width' => '1%');
}
if ($this->props['is_lang']) {
$this->fields['lang'] = array('name' => 'lang', 'title' => 'Язык', 'type' => 'string', 'readonly' => true);
}
$this->fields['credate'] = array('name' => 'credate', 'title' => 'Дата создания', 'type' => 'datetime', 'readonly' => true);
$this->fields['change_date'] = array('name' => 'change_date', 'title' => 'Дата изменения', 'type' => 'datetime', 'readonly' => true);
foreach ($this->fields as $k => $f) {
$this->fields[$k]['cls'] = $this->getDBTableName();
}
}
示例2: callMethod
function callMethod($sComponentName = 'tree', $sMethodName = 'index', $aParams = array())
{
try {
return $this->callMethodInstance($this->getMethodInstance($sComponentName, $sMethodName), $aParams);
} catch (Exception $e) {
echo CUtils::showError($e->getMessage());
exit;
}
}