Do CodeIgniter 4 model instances already have Query Builder methods loaded? |
When I instantiate a model in CodeIgniter 4, does it already have the Query Builder methods loaded, or is there a better way to access them?
You usually do not have to load them manually. No matter whether I use
Code: $model = model('App\Model\MyModel::class); or a ResourcePresenter which includes the model Code: protected $modelName = "App\Model\MyModel"; |
Welcome Guest, Not a member yet? Register Sign In |