Model 썸네일형 리스트형 [Codeigniter]Model 모델 액세스 Model 모델 액세스 // 새 클래스를 수동으로 생성 $userModel = new \App\Models\UserModel(); // 모델 헬퍼 함수로 새 클래스 생성 $userModel = model('App\Models\UserModel', false); // 모델의 공유 인스턴스 생성 $userModel = model('App\Models\UserModel'); // custom DB 연결 // 네임스페이스가 제공되지 않으면 시스템이 알고 있는 // 모든 네임스페이스를 검색하여 UserModel 클래스를 찾습니다. $db = db_connect('custom'); $userModel = model('UserModel', true, $db); 더보기 이전 1 다음