Php CodeIgniter加载帮助程序,语言和库仅用于管理区域

Php CodeIgniter加载帮助程序,语言和库仅用于管理区域,php,codeigniter,Php,Codeigniter,这已经被问了好几次了,我看过一些教程,但是我没有做到。我基本上有abc.com/admin,然后是admin/controller。我需要的是加载一些语言,助手和管理区的图书馆 class MY_Controller extends CI_Controller{ function __construct(){ parent::__construct(); } } class Admin_

这已经被问了好几次了,我看过一些教程,但是我没有做到。我基本上有abc.com/admin,然后是admin/controller。我需要的是加载一些语言,助手和管理区的图书馆

    class MY_Controller extends CI_Controller{         

        function __construct(){
          parent::__construct();
          }

      }


    class Admin_Controller extends MY_Controller{
         function __construct(){
          parent::__construct();
          file_put_contents('trial.txt','trial data');                 //JUST TO SEE IF THAT EVEN WORKS and it is not writing the file either
        $this->lang->load('scripts','english');
   }
}

所有管理区域中都不会加载任何内容,除非我在autoload.php中自动加载它们。我缺少什么?

对于helper
$this->load->helper('url\u helper.php')用于库
$this->load->library('class_name')语言
$this->lang->load('error_messages_lang','english');在这种情况下,请确保您的语言文件是
application->language->english->error\u messages\u lang.php,如下所示`@DivyeshPartiya如果没有加载怎么办?这就是我遇到的问题…它们无法加载。请启用错误报告并共享错误。。。