使用模型模块进行数据调用时,分页在某些情况下会出现错误,如http://localhost/?page-1,按照下面的修改方法可解决问题:
使用模型模块调用数据,设置了分页,但分页转向地址出现错误,错误连接为:http://localhost/?page-1
后来通过论坛得知解决方法,帖子地址:https://discuz.dismall.com/thread-1413908-1-1.html
经修改后,分页转向地址为:http://localhost/supesite/?name-Works-mo_catid-2-url-%2Fsupesite%2Fm.php%3Fname%3DWorks%26mo_catid%3D2-page-2
此分页转向地址并非正确,我也手动修改过连接地址实行分页跳转,
正确转向地址为:http://localhost/supesite/m.php?name=Works&mo_catid=2&page=2(这是参照帖子:https://discuz.dismall.com/thread-1413908-1-1.html 修改后才能正确转向的,修改前,此地址无效!)
请问如何修改转向地址格式为: http://localhost/supesite/m.php?name=Works&mo_catid=2&page=2
我的分页调用代码为:
- <!--{if !empty($_SBLOCK[DesignerC_multipage])}-->
- $_SBLOCK[DesignerC_multipage]
- <!--{/if}-->
复制代码 |