Code Igniter Controller/Model name conflicts

后端 未结 2 1909
小鲜肉
小鲜肉 2021-01-20 08:20

I have a controller and model both named \"account\" without getting \"cannot redeclare class\". I\'d like to add a prefix to Models or Controllers, or preferably both.

2条回答
  •  鱼传尺愫
    2021-01-20 09:02

    There should be an issue with this. if it was me, i would be a bit more descriptive with the prefix so you remember what the model or controller was for. I only say this because "account" is a little vague.

提交回复
热议问题