So I have been trying to build myself an boilerplate with Slim3. And actually, I’m pretty surprised that it is going so smooth, until now.
I want too adapt the MVC design pattern, but due to that I’m having trouble to inject the models into the app. (I think)
So far I can do everything in the controller, that is injected like this, but when trying to use for example $this->pdofrom a model, I’m receiving Notice: Undefined property.
When using Eloquent, this is works fine. No need for extra “injection”.