cakephp Table for model was not found in datasource default

前端 未结 2 1562
半阙折子戏
半阙折子戏 2021-01-18 16:19

I have just a table on my database named \"ficha_seg\". The name of my model file is \"Ficha.php\" and the name of the controller is \"FichasController.php\".

So, wh

2条回答
  •  不思量自难忘°
    2021-01-18 17:01

    To follow CakePHP conventions your table name should be in plural: ficha_segs and your model name should be 'FichaSeg'.

    If you don't want to follow it for any reason, do what @nlcO says.

提交回复
热议问题