gridview摘要显示实际值插入的模板字符串

时间:2019-07-17 08:16:49

标签: gridview yii2

以下是我的gridview代码:

function twentynineteen_scripts() {
    wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );


    wp_enqueue_script( 'twentynineteen-customControl', get_theme_file_uri( '/js/customize-controls.js' ), array('jquery'), '1.1', true );

    wp_localize_script( 'twentynineteen-customControl', 'php_obj',
        array(
            'ajaxUrl' => admin_url( 'admin-ajax.php' )
        )
    );
}

add_action( 'wp_enqueue_scripts', 'twentynineteen_scripts' );

add_action( 'wp_ajax_calendar_events', 'calendar_events_callback' );
add_action( 'wp_ajax_nopriv_calendar_events', 'calendar_events_callback' );

function calendar_events_callback() {

    $phpCalendar = new CalendarWidget();

    $calendarHTML = $phpCalendar->getCalendarHTML();
    echo $calendarHTML;
    exit();

}

但是其中的摘要无法正常工作, 向我展示

  

显示{totalCount,number}的{begin,number}-{end,number}   {totalCount,复数,一个{item},其他{items}}。

装有实际值。

0 个答案:

没有答案