2013-09-20 02:34
浏览 36

cakephp $ this-> User-> find('all');

Im totally new to cakephp and done some beginners tutorial and I see this line of code:


My question is this, where did 'User' come from since Ive never declared it on the program and I did not return an error but when I change the name of that, a bunch o errors happen.

Anyone pls help.

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongzhi1907 2013-09-21 05:10

    Go through the model documentation here . User is Model class in app/model folder.If you didnot created that ,cakephp will do it itself by default

    打赏 评论

相关推荐 更多相似问题