Welcome Guest, Not a member yet? Register   Sign In
Extending the Pagination library while using HMVC
#1

[eluser]zbrox[/eluser]
Hey,

I'm using a HMVC library by wiredesignz (https://bitbucket.org/wiredesignz/codeig...ions-hmvc/). Everything was working normally until I tried to extend the Pagination library. Upon declaring a MY_Pagination (in application/libraries) class I get the "Fatal error: Class 'CI_Pagination' not found" error.
Does anyone have any ideas about this? What is the correct manner of extending CI classes when using HMVC? Is there a way to extend CI classes just in a given module's structure?

Thanks in advance!
#2

[eluser]InsiteFX[/eluser]
./application/libraries/MY_Pagination.php
Code:
class MY_Pagination extends CI_Pagination {

}
#3

[eluser]zbrox[/eluser]
I'm aware of how to extend CI libraries, this is what I'm doing.
I actually found a typo somewhere else in the code that messed things up. However I was also wondering if it was possible to extend CI libraries only for the HMVC module and not for the whole application. So that they'll reside not in the applications folder but in the module folder.
Judging from what I've tried and what I've read so far it doesn't seem possible.
#4

[eluser]InsiteFX[/eluser]
I have not heard of anyone doing it like that!

I would post this question in the HMVC Forum Topic...
#5

[eluser]zbrox[/eluser]
Thank you, I'll post a question there.




Theme © iAndrew 2016 - Forum software by © MyBB