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 they can save it. retrieving user info and showing them in input fields: view editprofile.ctp -------------------------------------------------------- <?php foreach ($users as $user): endforeach; ?> <div class="row"> <span class="profiledata"><?php echo $form->input('created', array('value' => $user['created'])); ?></span> </div> <?php echo $form->create('User', array('action' => '__updateProfile'));?> <div class="button"> <?php echo $form->button('Sichern', array('type' => 'submit'));?> -------------------------------------------------------- as you can see i set under "action" a function "__updateProfile" a function that i declared in my controller, that actually updates the profile information in the database: function __updateProfile() { if ( $this->User->save($this->data) ){ $this->Session->setFlash('Profil aktualisiert'); } } also i created a function editprofile in my controller that gets the data: function editprofile() { $this->set('users', $this->User->findByUsername($this->Session- >read('User.username'))); } now if i hit the save button i get the error: UsersController::__updateProfile() cannot be accessed directly whats wrong here? thx soooo much. looking forward to your answers Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en