Tencent / Biny

Biny is a tiny, high-performance PHP framework for web applications
BSD 3-Clause "New" or "Revised" License
1.69k stars 258 forks source link

开启事务的问题 #111

Open gmplato opened 4 years ago

gmplato commented 4 years ago

开启事务后,好像引用不了。使用需要注意什么事项? Fatal error: Uncaught Error: Class 'Database' not found in /www/wwwroot/www.domain.cn/app/controller/admin/adminAction.php:620 Stack trace: #0 [internal function]: app\controller\adminAction->action_admin_user_update() #1 /www/wwwroot/www.domain.cn/lib/business/Controller.php(69): call_user_func_array() #2

billge1205 commented 4 years ago

你是不是没有use 进来 use biny\lib\Database;

gmplato commented 4 years ago

是的,没有引用,之前一直use Database;。谢谢