目录:
application
---captcha
-------contoller
-----------sms.php
---notice
-------logic
-----------sendLogic.php
========================================
在 sendLogic.php 里面的 send方法中有这么一句
\think\Loader::model("NoticeDataLogic", "logic")->ok(..........);
========================================
访问notice模块,全部OK Pass通过。
但是访问captcha就会把上面这句给报错,因为captcha模块 sms.php 调用了 sendLogic.php 里面的 send方法;
提示:【类不存在:app\common\logic\NoticeDataLogic】
========================================
请问这句要怎么写,既能在自己所属模块中使用,也支持其他模块调用正常。。
最佳答案