Welcome Guest, Not a member yet? Register   Sign In
Problem sending post data to model for insert/update
#3

[eluser]Nicholai[/eluser]
Thanks bretticus. I do understand the idea of separating data manipulation (model), logic (controller), and presentation (view) and can insert data if I follow the example of the "blog in 20 minutes" video. However, the video does a $this->db->insert('table',$_POST) and bypasses models altogether. It doesn't show how to send anything to a model and I haven't found one in the user guide either.

When trying to use the code I wrote, I receive a "fatal error: Cannot access empty property" in my controller. Is there a basic, newbie example of a controller that gets individual pieces of post data from a form submit and sends it to a model function to be processed?


Messages In This Thread
Problem sending post data to model for insert/update - by El Forum - 04-18-2009, 11:03 AM
Problem sending post data to model for insert/update - by El Forum - 04-18-2009, 07:58 PM
Problem sending post data to model for insert/update - by El Forum - 04-18-2009, 08:35 PM
Problem sending post data to model for insert/update - by El Forum - 04-18-2009, 09:25 PM
Problem sending post data to model for insert/update - by El Forum - 04-19-2009, 07:07 AM
Problem sending post data to model for insert/update - by El Forum - 04-20-2009, 08:29 AM
Problem sending post data to model for insert/update - by El Forum - 08-12-2009, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB