Reputation: 936
hi i'm new to kohana when i'm trying to use kohana pagination module i got error like this
ErrorException [ Fatal Error ]: Class 'Pagination' not found
later i look in bootstrap
file then there is no Pagination
module in Kohana::modules()
my bootstrap file is like this
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
Upvotes: 3
Views: 1208
Reputation: 404
Installing modules to Kohana is fairly easy due to Kohana's Cascading Filesystem.
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.
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.
Upvotes: 0
Reputation: 197787
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.
You can find a (probably working) 3.2 development version here: https://github.com/kohana/pagination/tree/3.2/develop
Upvotes: 4