<?php
namespace Common\Controller;
use Think\Controller;
class YmnlController extends Controller {
public function __construct(){
echo 111;
}
}
?>这个是Home模块<?php
namespace Home\Controller;
use Common\Controller;
class TestController extends YmnlController{
public function index(){
echo 'test';
$this->display();
}
}
?>结果运行报错:(
Class 'Home\Controller\YmnlController' not found
错误位置
FILE: F:\upupw\htdocs\cms\Application\Home\Controller\TestController.class.php LINE: 4
ThinkPHP3.2.0 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ] 最佳答案