D:wampwwwhongbaoYourphpLibActionAdminContentAction.class.php
insert方法
if(GROUP_NAME=='Admin'){
$this->assign ( 'jumpUrl', U($module.'/index') );
}elseif(GROUP_NAME=='User'){
$from='qiantai';
$this->assign ( 'jumpUrl',$_SERVER['HTTP_REFERER']);
//$this->assign ( 'jumpUrl', U(GROUP_NAME.'-'.MODULE_NAME.'/add?moduleid='.$cat['moduleid']) );
}
$this->success (L('add_ok').$from);
D:wampwwwhongbaoCoreLibCoreAction.class.php
dispatchJump方法
if(strpos($message, 'qiantai')){
$this->display(C('TMPL_ACTION_ERROR_QIANTAI'));
}else{
$this->display(C('TMPL_ACTION_SUCCESS'));
}
D:wampwwwhongbaoYourphpConfconfig.php
'TMPL_ACTION_ERROR' => APP_PATH.'/Tpl/Home/Default/Public/success.html',
'TMPL_ACTION_SUCCESS' => APP_PATH.'/Tpl/Home/Default/Public/success.html',
'TMPL_ACTION_ERROR_QIANTAI' => APP_PATH.'/Tpl/Home/Default/Public/success_qiantai.html',