且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 codeigniter 中使用作曲家包?

更新时间:2023-11-17 11:26:58

感谢@jmadsen

这可以通过正确的加载顺序来实现:

This is possible by just getting the order of loading correct:

/*
 * --------------------------------------------------------------------
 * LOAD THE BOOTSTRAP FILE
 * --------------------------------------------------------------------
 *
 * And away we go...
 *
 */
// Composer Autoloader
require FCPATH . 'vendor/autoload.php';

require_once BASEPATH.'core/CodeIgniter.php';

/* End of file index.php */