CakePHP specify table-name

前端 未结 2 1712
暗喜
暗喜 2021-01-19 15:03

I have a table called entries with an associated model called Entry. I stepped through the Blog-tutorial on the CakePHP website. It states that the

2条回答
  •  礼貌的吻别
    2021-01-19 15:46

    The answer to your question is to specify it inside your model.

    $useTable = 'yourtablename'
    

    Although, as Wooble noted, your doubts are wrong.

提交回复
热议问题