Welcome Guest, Not a member yet? Register   Sign In
pagination "per_page" not working
#4

[eluser]elvix[/eluser]
yeah, you should store all that config in config/pagination.php. CI should load it up when you load the lib.

your base_url will change, so there's no point in storing it in the config, unless you want it as a default value (i think this would be rare, but depends on your app).

To be fair (and i don't mean to be condescending), limit and offset are pretty basic MySQL concepts and sorta fall outside the scope of the CI manual. CI's just glue that helps put things together -- you're still going to want to know your DB functions, PHP fundamentals, Apache/htacess/server stuff.

I'd recommend getting the O'Reilly SQL pocket guide (small and cheap and very useful). And use PHP's online manual a lot (php functions are very squirrely, even zen masters don't remember how all the functions work).


Messages In This Thread
pagination "per_page" not working - by El Forum - 09-26-2008, 11:41 AM
pagination "per_page" not working - by El Forum - 09-26-2008, 12:44 PM
pagination "per_page" not working - by El Forum - 09-26-2008, 01:03 PM
pagination "per_page" not working - by El Forum - 09-26-2008, 01:15 PM
pagination "per_page" not working - by El Forum - 09-26-2008, 01:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB