Action::success PHP Method

success() protected method

操作成功跳转的快捷方
protected success ( string $message = '', boolean $ajax = false ) : voi
$message string 提示信息
$ajax boolean 是否为Ajax方
return voi
    protected function success($message = '', $ajax = false)
    {
        Addons::hook('core_filter_success_message', $message);
        $this->_dispatch_jump($message, 1, $ajax);
    }

Usage Example

コード例 #1
0
 /**
 +----------------------------------------------------------
 * 操作成功跳转的快捷方法
 +----------------------------------------------------------
 * @access protected
 +----------------------------------------------------------
 * @param string $message 提示信息
 * @param string $jumpUrl 页面跳转地址
 * @param Boolean $ajax 是否为Ajax方式
 +----------------------------------------------------------
 * @return void
 +----------------------------------------------------------
 */
 protected function success($message, $jumpUrl = '', $ajax = false)
 {
     if (!$ajax) {
         $this->assign('page_title', '提示信息 - ');
     }
     parent::success($message, $jumpUrl, $ajax);
     exit;
 }
All Usage Examples Of Action::success