我正在使用HMVC CI3,我在核心中有一个MY_Contrller,它扩展了MX_Controller。现在,我有一个名为orm的模块,我正在扩展这个类,如下所示,
class Orm extends CI_Controller
{
private $st;
private $cmf;
public function __construct()
{
parent::__construct();
$this->st = new \Doctrine\ORM\Tools\SchemaTool($this->doctrine->em);
$this->cmf = $this->doctrine->em->getMetadataFactory();
$this->cmf->setEntityManager($this->doctrine->em);
$this->module = 'orm';
$this->controller = 'orm';
}
public function index()
{
$realm = 'Restricted area for ORM Controller of NibsRMS';
$this->load->view("orm");
}
}
当我在浏览器中运行它时,它显示以下错误
致命错误:第196行的C:\ xampp \ htdocs \ tiffintom_master \ system \ core \ Common.php中找不到“CI_Doctrine”类