php - Where is the Associated / Related model loading happens -
i'm writing mvc application in php scratch assignment. associated / related models loaded.
i wrote front controller, models , views , working. need load associated models. have defined associations in model. need place associated model loading code somewhere in application.
any appreciated.
where models loaded depends on complexity of application/storage
- in simple mvc framework can load model info storage source controller yourself
- in more advanced framework can use service layer keep code dry , make easier yourself
- in big frameworks of time have sort of abstraction layer between storage , service layer
Comments
Post a Comment