私はcakephpを初めて使用し、コンソールツールを使用していくつかのCRUD操作を生成しようとしました。1つのテーブル(最大)を除いて正常に動作します。
新しい要素を追加しようとすると、次のように返されます。
エラー:非オブジェクトファイルでメンバー関数find()を呼び出します:C:\ wamp \ www \cakephp \ app \ Controller \ ChantiersController.php
行:50
これが50行目以降です。
$programs = $this->Chantier->Program->find('list');
$etats = $this->Chantier->Etat->find('list');
$types = $this->Chantier->Type->find('list');
$champsLibres = $this->Chantier->ChampsLibre->find('list');
$feuillesDeRoutes = $this->Chantier->FeuillesDeRoute->find('list');
$directionsPilotes = $this->Chantier->DirectionsPilote->find('list');
$this->set(compact('programs', 'etats', 'types', 'champsLibres',
'feuillesDeRoutes', 'directionsPilotes'));