系统找不到控制器

浏览:3164 发布日期:2013/12/19 分类:求助交流
在Home模块里有个CommonController.class.php
在Admin模块里调用,代为如下:

<?php
namespace Admin\Controller;
use Think\Controller;
use Home\Controller\CommonController;
class IndexController extends Controller {

public function index(){

CommonController::hello(); //静态方法

$this->display();
}
}

错误提示为:Class 'Home\Controller\CommonController' not found
最佳答案
评论() 相关
后面还有条评论,点击查看>>