Re: Problems with save

2007-12-03 Thread hydra12
Try this: if(!empty($this->data)) { foreach ($this->data["Tiposviajesusuario"] as $tipo) { $t["usuario_id"] = $u["id"]; $t["tipo_id"] = $tipo;

Problems with save

2007-12-03 Thread stefano
Hello i'm using the las version of cakephp1.2 i have a problem with Model->save this is my source --- if(!empty($this->data)) { foreach ($this->data["Tiposviajesusuario"] as $tipo) { $t["Tiposviajesusuario"]["usuario

Re: problems with save() and saveField()

2006-10-09 Thread Troy Schmidt
Can you do a quick example Nate? I am not following. This is something I would have done in coding as well. On Oct 8, 10:46 am, "nate" <[EMAIL PROTECTED]> wrote: > Also, why are you passing parameters to RequestHandler->isPost? All it > does is return true or false if the request method of the

Re: problems with save() and saveField()

2006-10-08 Thread nate
Also, why are you passing parameters to RequestHandler->isPost? All it does is return true or false if the request method of the current request is POST. If you're looking to require a post request for a given set of actions, you need the Security component. You can do the following in your con

Re: problems with save() and saveField()

2006-10-07 Thread hypercubed
Before using the save field you need to tell Cake what record to save it to. You have to do this $this->User->id = $uid; before $this->User->saveField. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

problems with save() and saveField()

2006-10-07 Thread eDevil
Hi, I'm trying to make a User Profile Managment system. So there's a "Update Profile" page where the logged in user can change the settings. The password fields remain empty and if the user wants to change the password, he/she puts in new passwords in respective input boxes. When the form is sub