本文整理汇总了PHP中acymailing::displayErrors方法的典型用法代码示例。如果您正苦于以下问题:PHP acymailing::displayErrors方法的具体用法?PHP acymailing::displayErrors怎么用?PHP acymailing::displayErrors使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类acymailing
的用法示例。
在下文中一共展示了acymailing::displayErrors方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @copyright Copyright (C) 2009-2011 ACYBA SARL - All rights reserved.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
if (!(include_once rtrim(JPATH_ADMINISTRATOR, DS) . DS . 'components' . DS . 'com_acymailing' . DS . 'helpers' . DS . 'helper.php')) {
echo "Could not load helper file";
return;
}
if (defined('JDEBUG') and JDEBUG) {
acymailing::displayErrors();
}
$taskGroup = JRequest::getCmd('ctrl', JRequest::getCmd('gtask', 'dashboard'));
$config =& acymailing::config();
$doc =& JFactory::getDocument();
$cssBackend = $config->get('css_backend', 'default');
if (!empty($cssBackend)) {
$doc->addStyleSheet(ACYMAILING_CSS . 'component_' . $cssBackend . '.css');
}
JHTML::_('behavior.tooltip');
$bar =& JToolBar::getInstance('toolbar');
$bar->addButtonPath(ACYMAILING_BUTTON);
if ($taskGroup != 'update') {
$app =& JFactory::getApplication();
if (!$config->get('installcomplete')) {
$app->redirect(acymailing::completeLink('update&task=install', false, true));
}
}
$lang =& JFactory::getLanguage();