我在“ application / libraries / Validate_login.php ”中添加了一个外部库控制器。
当我从外部库控制器加载 application / controllers / 中的控制器时,我收到错误Library verifylogin Not Found.
Validate_login.php
class Validate_login extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->model('loginuser');
$this->load->helper('url');
$this->load->library('verifylogin');// controller which is in application/controllers/
} }
答案 0 :(得分:0)
$this->load->library('verifylogin');// controller which is in application/controllers/
$ this-> load-> library()将在“application / libraries”目录中加载库。这就是为什么它找不到的原因。