Welcome Guest, Not a member yet? Register   Sign In
Refactoring the pagination code
#2

[eluser]designfellow[/eluser]
Hi,
its not valid to put config values in a model in MVC.
But CI accept this without error.
Actually this function is not necessary.
You can put a pagination.Php file under config directory and include the default pagination config values in that file.
It will be automatically initialized and you can simply call the create_links() function.

Happy Coding,
DesignFellow


Messages In This Thread
Refactoring the pagination code - by El Forum - 09-28-2009, 09:59 PM
Refactoring the pagination code - by El Forum - 09-29-2009, 03:47 AM
Refactoring the pagination code - by El Forum - 09-29-2009, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB