只要使用了D('Document')->update($data)之後就會報錯
TRACE怎麼處理,親們!
#0 D:\PHPnow\htdocs\gazx\ThinkPHP\Library\Think\Model.class.php(227): E('Think\\Model:upd...')
#1 D:\PHPnow\htdocs\gazx\Application\Home\Model\DocumentModel.class.php(173): Think\Model->__call('update', Array)
#2 D:\PHPnow\htdocs\gazx\Application\Home\Model\DocumentModel.class.php(173): Home\Logic\BaseLogic->update(47)
#3 D:\PHPnow\htdocs\gazx\Application\Home\Controller\IndexController.class.php(46): Home\Model\DocumentModel->update()
#4 [internal function]: Home\Controller\IndexController->doadd()
#5 D:\PHPnow\htdocs\gazx\ThinkPHP\Library\Think\App.class.php(156): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#6 D:\PHPnow\htdocs\gazx\ThinkPHP\Library\Think\App.class.php(194): Think\App::exec()
#7 D:\PHPnow\htdocs\gazx\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#8 D:\PHPnow\htdocs\gazx\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 D:\PHPnow\htdocs\gazx\index.php(40): require('D:\\PHPnow\\htdoc...')
#10 {main}
回覆
你應該是沒有定義相應的Logic類 不過已經改進了,之前只是改進了後臺的 沒改Home模組的