Welcome Guest, Not a member yet? Register   Sign In
Access $this->validation->Name inside Models
#7

[eluser]Colin Williams[/eluser]
Quote:You can change the state, and change the game like you did with you last post. But be clearer on what state the machine (CI) is in. Then I’ll change my answer.

What was your answer to "Now, after all data is confirmed and correct, I want it to be saved into the database. My problem now is that I cant find any hint how to give the validated data (XSS etc) to the model?"

I say load it up in an object and pass it on to a Model to be saved. You say, "because there are no other events to capture or other operations to be performed by the controller, there simply isn’t anything else for it to do unless we make things up for it to do."

Here's the game plan: Submit->Clean->Validate->Save. The model does the Save part. Where are we left with "nothing to do?"


Messages In This Thread
Access $this->validation->Name inside Models - by El Forum - 07-12-2008, 03:56 PM
Access $this->validation->Name inside Models - by El Forum - 07-12-2008, 04:13 PM
Access $this->validation->Name inside Models - by El Forum - 07-12-2008, 07:46 PM
Access $this->validation->Name inside Models - by El Forum - 07-12-2008, 09:48 PM
Access $this->validation->Name inside Models - by El Forum - 07-12-2008, 11:01 PM
Access $this->validation->Name inside Models - by El Forum - 07-12-2008, 11:36 PM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 12:07 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 01:16 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 03:15 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 03:20 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 03:21 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 03:23 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 03:33 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 09:38 AM
Access $this->validation->Name inside Models - by El Forum - 07-13-2008, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB