学习ThinkPHP3.2.2:视频7中的跳转
2015-10-02 20:47
337 查看
原来的U函数跳转功能我没能实现,改用redirect。
public function index(){
$sUrl=U('show', array('uid' => 1), '', true);
redirect($sUrl, 1, '页面跳转中...');
}
public function show(){
echo '111111';
}
输入:http://localhost/wish/index.php/Home/Index/index/uid/1
输出:111111
public function index(){
$sUrl=U('show', array('uid' => 1), '', true);
redirect($sUrl, 1, '页面跳转中...');
}
public function show(){
echo '111111';
}
输入:http://localhost/wish/index.php/Home/Index/index/uid/1
输出:111111
相关文章推荐
- 学习ThinkPHP3.2.2:视频第七讲中的U函数
- 学习ThinkPHP3.2.2:几种URL访问方式
- 学习ThinkPHP3.2.2:模板文件所需css文件位置
- 学习ThinkPHP3.2.2:模板文件的加载
- 学习ThinkPHP3.2.2:了解并测试与3.1不同之处_自定义函数文件名称
- 学习ThinkPHP3.2.2(五):编辑记录
- PHP实现邮件的自动发送
- PHP数组详解
- php yii连接mysql配置扩展
- phpstorm 9.0最新 注册码亲测可用注册码
- 《php和mysql web开发》笔记——第10章 使用MySQL数据库
- php使用命名空间:别名/导入
- 《php和mysql web开发》笔记——第9章 创建Web数据库
- thinkphp3.2.3子查询中遇到的错误
- php try,catch,throw异常处理
- 数据库出现无法载入MYSQL扩展,请检查PHP配置的解决
- 5-v4l2——input and output输入输出
- zendstudio 10 安装
- PHP数组各种操作与函数汇总
- php 获取时间