我想用
elliothaughins Socialize system代码点火器,
但是我一直在努力
Message: include(application/third_party/config/socializenetworks.php): failed to open stream: No such file or directory
我跟踪过这个问题,当我打电话的时候
$这 – >负载> add_package_path(APPPATH.’third_party /社交/’);
在loader类中如果我死($path)我只得到application / third_party.
虽然控制器的代码是,但这看起来很奇怪
class SocializeController extends CI_Controller {
function __construct(){
parent::__construct();
parse_str($_SERVER['QUERY_STRING'], $_GET);
$this->load->add_package_path(APPPATH.'third_party/socialize/');
$this->_autoload();
}
private function _autoload(){
$this->load->model('socialize_migration_model');
$autoload = array();
include(APPPATH.'third_party/socialize/config/autoload'.EXT);
foreach ( $autoload as $type => $files ) {
$type = ($type == 'libraries') ? 'library' : $type;
foreach ( $files as $file ){
$this->load->$type($file);
}
}
}
public function data($key, $value)
{
$this->load->vars(array($key => $value));
}
}
你可以看到它正在调用一个成功加载的模型,
当它到达自动加载器时,它会加载它打破的库,
提供问题的特定库就像开始一样
class SocializeNetworks {
private $_obj;
private $_networks = array();
function __construct(){
$this->_obj =& get_instance();
$this->_obj->load->config('socializenetworks'); // this is the line we die on :(
所以,
什么事情发生在这里,我该如何解决?