over 4 years ago
To update a a field in the database in cakephp we uses an array,
the task is done as,
$this->request->id = $id;
$data['User']['id'] = $this->request->id;
$data['User']['fname'] = $filename;
In the above code the array $data is created which stores the user id and the file name in the array and updates the user's fname on that id.
$this->User->save($data); This statement performs the saving part.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using