Welcome Guest, Not a member yet? Register   Sign In
scopes within CI
#4

[eluser]ramabodhi[/eluser]
Well i no longer have the code, I solved the problem with a different method, which has brough me to a different problem:
http://ellislab.com/forums/viewthread/113176/

but the issue was that I wanted to sort a db query without having to run the query again, so i tried to set the results to $this->results, then load the view and display $this->results..
(as opposed to $data['results'] = $results; $this->load->view('view', $data)Wink

this way I could keep the result set and sort it by redirecting to the sort method in my controller, which would simply sort $this->results and reaload the view..

I think my problem is that ci gives me the impression of a static environment, but in reality I lose that information on the new server request to the sort method.

i did solve this with sending the results directly to the view with the load view function, but like i said above it has led to a new problem of my css disappearing when theres more than 4 uri segments (though everything works fine).


Messages In This Thread
scopes within CI - by El Forum - 04-30-2009, 12:03 PM
scopes within CI - by El Forum - 04-30-2009, 12:12 PM
scopes within CI - by El Forum - 04-30-2009, 06:56 PM
scopes within CI - by El Forum - 04-30-2009, 07:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB