dynamic Use $class;

I am working on making a plugin / module / whatever you want to call it...

I am curious to know if it is possible to dynamically call a model name based off a config value.

EG: config value is: USER_MODEL = "\App\Model\User" and in the model class I want to be able to dynamically set that for the:

Use $user_model; part at the top..

I am not sure if this is even possible or not?
Was this page helpful?