关于U()方法生成链接的格式问题

浏览:326 发布日期:2015/07/06 分类:求助交流 关键字: U方法 无法加载模块
 <div class="product"><h4><a href="{:U('home/article/index/category/'.$cate['name'])}">{$cate.title}</a> </h4></div>二次开发 两段一样的代码 生成的url不一样http://localhost/O2oshop/index.php?m=home/article/lists&c=category&a=j_fruithttp://localhost/yershop1.6/index.php?s=/home/article/lists/category/j_fruit.html其中http://localhost/O2oshop/index.php?m=home/article/lists&c=category&a=j_fruit显示无法加载模块,是什么造成这种差异呢?手册里也没有找到这种格式的模式。。。
还没审核过 哈哈 解决了 把url模式设置为兼容模式就可以了
最佳答案
评论( 相关
后面还有条评论,点击查看>>