здесь произошло ошибка: Unable to find table class for current entity
торт 3 Блог Учебник Ошибка При использовании newEntity
здесь добавить метод Статьи контроллера
public function add()
{
$article = $this->Articles->newEntity();
if ($this->request->is('post')) {
$article = $this->Articles->patchEntity($article, $this->request->data);
if ($this->Articles->save($article)) {
$this->Flash->success(__('Your article has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('Unable to add your article.'));
}
$this->set('article', $article);
}
И вот add.ctp
<h1>Add Article</h1>
<?php
echo $this->Form->create($article);
echo $this->Form->input('title');
echo $this->Form->input('body', ['rows' => '3']);
echo $this->Form->button(__('Save Article'));
echo $this->Form->end();
?>
Упс! , не исправлено: | – Mojtabye
Вы уверены, что это было обновлено? Попробуйте найти свой композитор.json, чтобы поделиться им с помощью gist.github.com, а также поделиться своим файлом composer.lock –