使用U方法在本类中跳转

浏览:448 发布日期:2014/07/28 分类:求助交流 关键字: U方法跳转 本类中跳转
<?php
class IndexAction extends Action {
public function index()
{
echo U('show',array('uid'=>1),"",1);
}
public function show()
{
echo 111;
}
}
?>
各位问一下,我使用U方法,在本类中跳转到show方法,出现404错误,但是我获得的url是对的,/index.php/Index/show/uid/1.html。如果我在网页上自己输入/index.php?m=Index&a=show就能输出正确,这个到底是什么问题啊?
最佳答案
评论( 相关
后面还有条评论,点击查看>>