[eluser]netenabled[/eluser]
Hi guys this is my first web project and first MVC codeigniter one. I have virtually finished my site and have it doing everything I need it to do however there are a few places where it falls down and so I was wondering if you could give me an idea of what it is I am supposed to be doing in these circumstances.
I am building a comparison site. My site compares products and then offers then for sale.
I have a homepage with a search. The search submits to the homepage controller.
On successful access to the db via the search_model I return the users to a new view via the homepage controller.
This view is the comparison page. The comparison page submits a form with the details of the chosen product to a new controller, the purchase controller. This in turn saves to the db via a order_model and then returns the user to a new view where the user can make changes to the product that they have chosen.
It is at this point that I have the issue.
Because it is coming from the previous controller, when I use the set_value commands on my radio buttons, they are not setting as the validation for them is in the next controller not the previous one.
Instead of calling this view in the previous controller, should I instead redirect them to the new page and send the information required for that page, that was derived by the previous controller via flashdata?
Would this get around the issue that I am facing.
My overall question is about dynamic pages, validation and set_values.