code igniter load library from within library?
问题 Is it possible to load an library from within a library in code igniter? If I do $this->validator = $this->CI->load->library('validators/'.$params['validator']); from within another library $this->validator is NULL. Why would this be? 回答1: Check out the CI_Loader class's signature for the library() method you refer to: /** * Class Loader * * This function lets users load and instantiate classes. * It is designed to be called from a user's app controllers. * * @access public * @param string