2014-10-09 24 views

回答

0

我不知道它是否有效。但只是嘗試像以下:

$this->load->driver('some_parent'); 

而且在您要使用的驅動程序的靜態函數:

CI =& get_instance(); 
CI->some_parent->function(); 

希望可以幫助。

+0

謝謝!還發現埃利斯實驗室也推薦了相同的方法:https://ellislab.com/codeigniter/user-guide/general/creating_libraries.html – user90766 2014-10-09 12:23:33