dispatch_jump.tpl 为什么 失败和成功多会显示出来呢

浏览:1194 发布日期:2014/01/06 分类:求助交流
config.php
//'配置项'=>'配置值'
'HTML_CACHE_ON' =>false, // 默认关闭静态缓存
'URL_MODEL' => 1,
'APP_STATUS' => 'debug', //debug应用自定义调试模式状态0

'LAYOUT_ON' => TRUE,
'LAYOUT_NAME' => 'layout',

'TOKEN_ON'=>true, // 是否开启令牌验证
'TOKEN_NAME'=>'__hash__', // 令牌验证的表单隐藏字段名称
'TOKEN_TYPE'=>'md5',



action 方法

public function register(){

$user = D('User');

if(!empty($_GET['sub'])){
print_r($_GET);
$date=array(
'user_name' => $_GET['name'],
'user_password' => $_GET['ps'],
);
if ($user->add($date)){
print_r ('MYSQL语句:'.$user ->getLastSql());
$this->success('注册成功 开始跳转','__APP__/User/index',30);
}else{ $this->error('失败 注册');
}
}

$this->display();
}


dispatch_jump.tpl 是默认的 3.13我没有动过
<div class="system-message">
<present name="message">
<h1>:)</h1>
<p class="success"><?php echo($message); ?></p>
<else/>
<h1>:(</h1>
<p class="error"><?php echo($error); ?></p>
</present>
<p class="detail"></p>
<p class="jump">
页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间: <b id="wait"><?php echo($waitSecond); ?></b>
</p>
</div>
但是 结果 是 成功 跳转提示 成功 和失败 多显示


如果 是失败 , 提示 成功 和失败 多显示

附件 QQ截图11120140106011617.jpg ( 51.6 KB 下载:3 次 )

最佳答案
评论( 相关
后面还有条评论,点击查看>>