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

  1. in simple mvc framework can load model info storage source controller yourself
  2. in more advanced framework can use service layer keep code dry , make easier yourself
  3. in big frameworks of time have sort of abstraction layer between storage , service layer

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -