Welcome Guest, Not a member yet? Register   Sign In
About:pagination; Q: Does the config data should reside in a model or in controller?
#1

[eluser]developer10[/eluser]
So, everything is in the topic: where to put $config['some_param'] = 'sth here'; - in model or in controller?

in the moment, i'm trying to pull everything related to pagination to controller, but to no avail. there are stuff (config items)
needed by / working only in the model, since they depend on the data pulled from the query (total rows, etc).

it's a very large query, with if statements, which basically serves for the whole site (several filters/parameters included) so that
i can get needed resultset and only then calculate total rows and initiate pagination.

how to send total rows (and such data) to the controller and be able to use it there (eg, as config item)?


Messages In This Thread
About:pagination; Q: Does the config data should reside in a model or in controller? - by El Forum - 12-07-2009, 09:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB