PHP注意 - yii \ base \ ErrorException

时间:2016-04-25 16:34:24

标签: php oop yii yii2 yii-extensions

使用未定义的常量INTL_ICU_VERSION - 假设为'INTL_ICU_VERSION

Yii Framework / 2.0.7

  

$ checks [] = array(                   'title'=> Yii :: t('base',$ title),                   'state'=> '错误',                   '提示'=> '安装INTL扩展'               );           }

    $icuVersion = (defined('INTL_ICU_VERSION')) ? INTL_ICU_VERSION : 0;
    $icuMinVersion = '4.8.1';
    $title = 'PHP - INTL Extension - ICU Version (' . INTL_ICU_VERSION . ')';
    if (version_compare($icuVersion, $icuMinVersion, '>=')) {
        $checks[] = array(
            'title' => Yii::t('base', $title),
            'state' => 'OK'
        );
    } else {
        $checks[] = array(
            'title' => Yii::t('base', $title),
            'state' => 'WARNING'


          'hint' => 'Install INTL Extension'
        );
    }

    $icuVersion = (defined('INTL_ICU_VERSION')) ? INTL_ICU_VERSION : 0;
    $icuMinVersion = '4.8.1';
    $title = 'PHP - INTL Extension - ICU Version (' . INTL_ICU_VERSION . ')';
    if (version_compare($icuVersion, $icuMinVersion, '>=')) {
        $checks[] = array(
            'title' => Yii::t('base', $title),
            'state' => 'OK'
        );
    } else {

1 个答案:

答案 0 :(得分:0)

我猜你的问题是solution

或者尝试更新Php版本