can't update data that is entered in form

2010-07-08 Thread Tomfox Wiranata
hi everyone, i need help. again. since this forum always has answers i thought i give it a shot :) on my future website the users have the opportunity to edit their profile. to do that their profile info gets retrieved from the database to input fields in a form. after editing their information

Re: can't update data that is entered in form

2010-07-08 Thread Jon Bennett
now if i hit the save button i get the error: UsersController::__updateProfile() cannot be accessed directly whats wrong here? Cake assumes methods prefixed with double underscores are private, and therefore can not be access directly, only internally via another public method. hth J --

Re: can't update data that is entered in form

2010-07-08 Thread Tomfox Wiranata
thx. seems to work. but cake inserts new data and doesnt updatei guess i havent declared a where clause, so thats the reason!!!??? wher would i put it? thx On 8 Jul., 11:17, Jon Bennett jmbenn...@gmail.com wrote: now if i hit the save button i get the error:

Re: can't update data that is entered in form

2010-07-08 Thread Shaz
Also do a Cake Bake on a model to see how cake itself does pretty basic Create/Read/Update/Delete. On Jul 8, 10:17 am, Jon Bennett jmbenn...@gmail.com wrote: now if i hit the save button i get the error: UsersController::__updateProfile() cannot be accessed directly whats wrong here?