thinkphp自动验证失败的解决办法

admin 2015年05月21日 PHP学习 1069次阅读 查看评论

 

 [ 2015-05-21T14:33:14+08:00 ] 127.0.0.1 /user/dologin

  INFO: [ app_init ] --START--

  INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ]

  INFO: [ app_init ] --END-- [ RunTime:0.000000s ]

  INFO: [ app_begin ] --START--

  INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ app_begin ] --END-- [ RunTime:0.000000s ]

  NOTIC: [2048] Declaration of Home\Model\UserModel::check() should be compatible with that of Think\Model::check() D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 4 行.

  SQL: SHOW COLUMNS FROM `user` [ RunTime:0.0000s ]

  NOTIC: [8] Use of undefined constant post - assumed 'post' D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 19 行.

  NOTIC: [8] Use of undefined constant verify - assumed 'verify' D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 19 行.

  INFO: [ view_parse ] --START--

  INFO: [ template_filter ] --START--

  INFO: Run Behavior\ContentReplaceBehavior [ RunTime:0.000000s ]

  INFO: [ template_filter ] --END-- [ RunTime:0.000000s ]

  INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.015625s ]

  INFO: [ view_parse ] --END-- [ RunTime:0.015625s ]

  INFO: [ view_filter ] --START--

  INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ view_filter ] --END-- [ RunTime:0.000000s ]

  [ 2015-05-21T14:33:19+08:00 ] 127.0.0.1 /user/dologin

  INFO: [ app_init ] --START--

  INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ]

  INFO: [ app_init ] --END-- [ RunTime:0.000000s ]

  INFO: [ app_begin ] --START--

  INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ app_begin ] --END-- [ RunTime:0.000000s ]

  NOTIC: [2048] Declaration of Home\Model\UserModel::check() should be compatible with that of Think\Model::check() D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 4 行.

  SQL: SHOW COLUMNS FROM `user` [ RunTime:0.0000s ]

  NOTIC: [8] Use of undefined constant post - assumed 'post' D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 19 行.

  NOTIC: [8] Use of undefined constant verify - assumed 'verify' D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 19 行.

  INFO: [ view_parse ] --START--

  INFO: [ template_filter ] --START--

  INFO: Run Behavior\ContentReplaceBehavior [ RunTime:0.000000s ]

  INFO: [ template_filter ] --END-- [ RunTime:0.000000s ]

  INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.000000s ]

  INFO: [ view_parse ] --END-- [ RunTime:0.000000s ]

  INFO: [ view_filter ] --START--

  INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ view_filter ] --END-- [ RunTime:0.000000s ]

  [ 2015-05-21T14:33:23+08:00 ] 127.0.0.1 /user/dologin

  INFO: [ app_init ] --START--

  INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ]

  INFO: [ app_init ] --END-- [ RunTime:0.000000s ]

  INFO: [ app_begin ] --START--

  INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ app_begin ] --END-- [ RunTime:0.000000s ]

  NOTIC: [2048] Declaration of Home\Model\UserModel::check() should be compatible with that of Think\Model::check() D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 4 行.

  SQL: SHOW COLUMNS FROM `user` [ RunTime:0.0313s ]

  NOTIC: [8] Use of undefined constant post - assumed 'post' D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 19 行.

  NOTIC: [8] Use of undefined constant verify - assumed 'verify' D:\phpStudy\WWW\gdip\App\Home\Model\UserModel.class.php 第 19 行.

  INFO: [ view_parse ] --START--

  INFO: [ template_filter ] --START--

  INFO: Run Behavior\ContentReplaceBehavior [ RunTime:0.000000s ]

  INFO: [ template_filter ] --END-- [ RunTime:0.000000s ]

  INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.000000s ]

  INFO: [ view_parse ] --END-- [ RunTime:0.000000s ]

  INFO: [ view_filter ] --START--

  INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ view_filter ] --END-- [ RunTime:0.000000s ]

  [ 2015-05-21T14:34:06+08:00 ] 127.0.0.1 /user/dologin

  INFO: [ app_init ] --START--

  INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ]

  INFO: [ app_init ] --END-- [ RunTime:0.000000s ]

  INFO: [ app_begin ] --START--

  INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ]

  INFO: [ app_begin ] --END-- [ RunTime:0.000000s ]

  SQL: SHOW COLUMNS FROM `user` [ RunTime:0.0000s ]

  INFO: [ app_end ] --START--

  INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ]

  INFO: [ app_end ] --END-- [ RunTime:0.000000s ]

thinkphp自动验证失败的解决办法

以上是thinkphp突然验证失败的原因,分析一下,发现自己在model类下面创建的方法和thinkphp model的方法有重名导致!

经验:thinkphp model中的方法最好加上前缀,避免失效的问题发生!

« 上一篇 下一篇 » admin原创文章,转载请注明出处! 标签:thinkphp自动验证失败解决办法

相关日志:

«   2019年11月   »
123
45678910
11121314151617
18192021222324
252627282930
控制面板
您好,欢迎到访网站!
  [查看权限]
网站分类
文章归档
网站收藏
友情链接
图标汇集
  • 又拍云
  • 订阅ipvb的RSS 2.0聚合