且构网

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

从另一个模型加载和使用Codeigniter模型

更新时间:2023-12-02 19:12:04

您可以这样做:

class User_model extends Model
{
    function get_something()
    {
         $CI =& get_instance();
         $CI->load->model('profile_model');
         return $CI->profile_model->get_another_thing();
    }
}