hi i'm new to kohana when i'm trying to use kohana pagination module i got error like this
嗨,当我尝试使用kohana分页模块时,我是kohana的新手,我得到了这样的错误
ErrorException [ Fatal Error ]: Class 'Pagination' not found
later i look in bootstrap
file then there is no Pagination
module in Kohana::modules()
后来我看了bootstrap文件然后在Kohana :: modules()中没有Pagination模块
my bootstrap file is like this
我的bootstrap文件是这样的
Kohana::modules(array(
'auth' => MODPATH.'auth', // Basic authentication
'cache' => MODPATH.'cache', // Caching with multiple backends
'codebench' => MODPATH.'codebench', // Benchmarking tool
'database' => MODPATH.'database', // Database access
'image' => MODPATH.'image', // Image manipulation
'orm' => MODPATH.'orm', // Object Relationship Mapping
'unittest' => MODPATH.'unittest', // Unit testing
'userguide' => MODPATH.'userguide', // User guide and API documentation
));
where can i get module and how to add it and enable ???
我在哪里可以得到模块以及如何添加它并启用???
please give some clarity
请说清楚
thanks in advance
提前致谢
2 个解决方案
#1
4
I'd say that for the version 3.2 no such (stable) pagination module exists. I'm not following kohana that closely but can remember that this class takes it's time to keep steady with the pace of development.
我会说版本3.2没有这样的(稳定的)分页模块。我并没有密切关注kohana,但可以记住,这个课程需要时间来保持稳定的发展速度。
You can find a (probably working) 3.2 development version here: https://github.com/kohana/pagination/tree/3.2/develop
你可以在这里找到一个(可能正常工作的)3.2开发版本:https://github.com/kohana/pagination/tree/3.2/develop
#2
0
Installing modules to Kohana is fairly easy due to Kohana's Cascading Filesystem.
由于Kohana的Cascading Filesystem,将模块安装到Kohana非常容易。
First, you will want to download the pagination module from GitHub using the download as ZIP option on the downloads page. Extract the files to a folder named pagination
in your Kohana installation's modules directory.
首先,您需要在下载页面上使用下载为ZIP选项从GitHub下载分页模块。将文件解压缩到Kohana安装的modules目录中名为pagination的文件夹。
Next, you will need to add a line to your modules array pointing the name of the module to its path. You should end up with;
接下来,您需要在模块数组中添加一行,将模块名称指向其路径。你应该最终得到;
Kohana::modules(array(
'auth' => MODPATH.'auth', // Basic authentication
'cache' => MODPATH.'cache', // Caching with multiple backends
'codebench' => MODPATH.'codebench', // Benchmarking tool
'database' => MODPATH.'database', // Database access
'image' => MODPATH.'image', // Image manipulation
'orm' => MODPATH.'orm', // Object Relationship Mapping
'unittest' => MODPATH.'unittest', // Unit testing
'userguide' => MODPATH.'userguide', // User guide and API documentation
'pagination' => MODPATH.'pagination', // Added pagination module
));
Bear in mind that this module was built for Kohana 3.1, and was last touched 2 years ago.
请记住,此模块是为Kohana 3.1而构建的,并且在2年前被最后一次触及。
#1
4
I'd say that for the version 3.2 no such (stable) pagination module exists. I'm not following kohana that closely but can remember that this class takes it's time to keep steady with the pace of development.
我会说版本3.2没有这样的(稳定的)分页模块。我并没有密切关注kohana,但可以记住,这个课程需要时间来保持稳定的发展速度。
You can find a (probably working) 3.2 development version here: https://github.com/kohana/pagination/tree/3.2/develop
你可以在这里找到一个(可能正常工作的)3.2开发版本:https://github.com/kohana/pagination/tree/3.2/develop
#2
0
Installing modules to Kohana is fairly easy due to Kohana's Cascading Filesystem.
由于Kohana的Cascading Filesystem,将模块安装到Kohana非常容易。
First, you will want to download the pagination module from GitHub using the download as ZIP option on the downloads page. Extract the files to a folder named pagination
in your Kohana installation's modules directory.
首先,您需要在下载页面上使用下载为ZIP选项从GitHub下载分页模块。将文件解压缩到Kohana安装的modules目录中名为pagination的文件夹。
Next, you will need to add a line to your modules array pointing the name of the module to its path. You should end up with;
接下来,您需要在模块数组中添加一行,将模块名称指向其路径。你应该最终得到;
Kohana::modules(array(
'auth' => MODPATH.'auth', // Basic authentication
'cache' => MODPATH.'cache', // Caching with multiple backends
'codebench' => MODPATH.'codebench', // Benchmarking tool
'database' => MODPATH.'database', // Database access
'image' => MODPATH.'image', // Image manipulation
'orm' => MODPATH.'orm', // Object Relationship Mapping
'unittest' => MODPATH.'unittest', // Unit testing
'userguide' => MODPATH.'userguide', // User guide and API documentation
'pagination' => MODPATH.'pagination', // Added pagination module
));
Bear in mind that this module was built for Kohana 3.1, and was last touched 2 years ago.
请记住,此模块是为Kohana 3.1而构建的,并且在2年前被最后一次触及。