没有页面刷新排序和codeigniter中的分页 [英] without a page refresh sorting and pagination in codeigniter
本文介绍了没有页面刷新排序和codeigniter中的分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
怎么可能plz给我一些代码
how it possible plz give me some code
推荐答案
这是不可能的。 CodeIgnitor是一个PHP框架,PHP(服务器(!) - 侧语)仅在您从浏览器向服务器发送请求后才有效。
您唯一能做的就是通过AJAX向CI发送请求以替换当前页面的部分(虽然CI与重新加载几乎相同)。
that?s not possible. CodeIgnitor is a PHP framework and PHP (a server(!)-side language) only works after you send a request from the browser to the server.
the only thing you could do is send a request via AJAX to CI to replace parts of the current page (though for CI that?s pretty much the same as if there were a reload).
另一种可能的方式,如ajax ,jquery等...
i尝试ajax并成功运行代码进行分页但我没有成功排序...我需要排序代码
控制器代码
another way to possible like ajax,jquery etc...
i try ajax and successfully run code for pagination but i have not sorting successfully...i need sorting code
controller code
展开 | 选择 | Wrap | 行号
给我一些提示......
give me a some hints....
这篇关于没有页面刷新排序和codeigniter中的分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文