cakephp3中的前类错误是什么

时间:2016-09-10 07:27:43

标签: php cakephp cakephp-3.0

在cakephp3中,我一直在选项卡的网页标题中收到错误消息。

我正在向表中添加一些数据,这就是全部,并且它工作正常所以使用此错误消息以及如何摆脱它?

我无法复制并粘贴错误,但我得到与此网页相同的内容http://www.huntnhire.com/DegreeSpecializations/getByDegree

 public function adddisplay()
    {

         $subjects = $this->Subjects->find()

              ->order(['Subjects.name' => 'ASC'])
              ->hydrate(true);

        $subject = $this->Subjects->newEntity();
        if ($this->request->is('post')) {
            $subject = $this->Subjects->patchEntity($subject, $this->request->data);
            if ($this->Subjects->save($subject)) {
                $this->Flash->success(__('The subject has been saved.'));
                return $this->redirect(['action' => 'adddisplay']);
            } else {
                $this->Flash->error(__('The subject could not be saved. Please, try again.'));
            }
        }
        $this->set(compact('subjects'));
       // $this->set('_serialize', ['subject']);
    }

0 个答案:

没有答案