cakephp - Add data to store in cakephp3 controller -
i using cakephp-3.0 have problem in version of cakephp 2.x can add data in controller , don't need send view. example: public function add() { $this->request->data['user']['id']=$this->auth->user('id');//and save id $this->request->data['user']['date']=$date('y-m-d h:m:s');// , save date if ($this->request->is('post')) { if ($this->users->save($user)) { $this->flash->success('the user has been saved.'); return $this->redirect(['action' => 'index']); } else { $this->flash->error('the user not saved. please, try again.'); } } $this->set(compact('user')); $this->set('_serialize', ['user']); } up here, add data received, receive information , data added id , date example. example. , if save information, information sa