[eluser]Rick Jolly[/eluser]
[quote author="Jim Higgins" date="1206658595"]Okay. That's my problem... I am new to PHP. I have a lot of experience with OOP using Flash ActionScript as well as Java. Was trying to figure out a way to keep my objects alive from one stage of the application to the next.
I was trying to avoid recreating search results each time a user came to a page...
Controller creates an array of search results and displays them in a view
User clicks one result and goes to a different view
The user wants to go back to the search results
I didn't want to, essentially, re-run the search and recreate the objects.
Thanks for your help. Much appreciated.[/quote]
What you're describing isn't possible in any web application. The web is stateless, so every user action (that isn't handled completely client-side with javascript) requires another round trip to the server. Even in a java web application you'd need to unserialize data (either from database or file) and recreate objects for every http request.
Now you could store the search results in the session (edit: or the parameters necessary to recreate the search results), but you'd still have to unserialize that data from session storage (cookie, file, or database) on every http request.