??????? $pagination = new Pagination(array(
??????????? 'base_url'??? => 'admin/app', // base_url will default to current uri
??????????? 'uri_segment'??? => 'page', // pass a string as uri_segment to trigger former 'label' functionality
??????????? 'total_items'??? => $_totalnum, // use db count query here of course
??????????? 'items_per_page' => $_perPage, // it may be handy to set defaults for stuff like this in config/pagination.php
??????????? 'style'????????? => 'classic', // pick one from: classic (default), digg, extended, punbb, or add your own!
??????????? /// 'query_string'?? => 'page',
??????? ));
the above will generate url like:
admin/app/page/1
but if you wanna pass more get parameters, you can uncomment the 'query_string', the url will be generated like:
admin/app?page=1
分享到:
相关推荐
Kohana起源于Codeigniter(CI),CI是EllisLab的开源作品。他们有很多相似的地方,但是Kohana的所有代码是重新编写或完全改写了。你可以访问Kohana的官方网站, 它的主要特点如下:高安全性很轻巧容易学习使用MVC模式...
Kohana不限制你访问全局数据,但是提供了XSS过滤和检查所有的全局变量。 4、级联式资源,模块和继承。可以从你的系统,程序或者模块路径的任何地方加载控制器,模型,类库,助手和视图。配置参数可以继承或动态声明...
kohana一个php框架kohana一个php框架kohana一个php框架
kohana3 用户手册kohana3 用户手册kohana3 用户手册
Kohana不限制你访问全局数据,但是提供了XSS过滤和检查所有的全局变量。 4、级联式资源,模块和继承。可以从你的系统,程序或者模块路径的任何地方加载控制器,模型,类库,助手和视图。配置参数可以继承或动态声明...
Kohana 3.0 Beginner's Guide(Jason D. Straughan) Develop professional web applications with Kohana 关于Kohana3的不可多得的资料。英文版,流畅易读。
kohana3.0 很不错的,想用它的必读
kohana-3.2.2
分页库(Pagination Library) - 汉化度 99% 分析库(Profiler Library) - 汉化度 100% Session 库 - 汉化度 100% URI 库 - 汉化度 99% 校验库(Validation Library) - 汉化度 99% 辅助函数(Helpers) 数组辅助...
kohana3中文手册 百度上下载下来转换成pdf格式的。在这感谢翻译的人员不迟辛苦为中文人员的贡献。
kohana3.0 英文版,需要的可以下载
kohana2.3.4帮助文档,稀缺资源,不可错过。官方已没有了。 中文汉化版。
很好的kohana教程本人已经看过非常好
Kohana v2.2 中文手册.chm
kohana3.3.6官方最新稳定版本,kohana3.3.6官方最新稳定版本
Kohana中文手册,从菜鸟到高手的过程是艰辛的,你渴望救助。这本教程就是你无言的助手,默默的帮你到永远。 带奋斗一起飞翔,因为有了它,让我拥有理智之思;我才使过去的失误不再重演到今天的影片里;我才能使过去...
这是网上找的各种关于kohana的文档 自己动手进行了总结。
Kohana is an open source, object oriented MVC web framework built using PHP5 by a team of volunteers that aims to be swift, secure, and small. Kohana 3.0 英文 API 手冊
Kohana Docs v2.2.chm PHP框架chm学习资料
目前正在翻译当中,详情请关注 http://khnfans.cn http://khnfans.org.cn http://khnfans.com.cn