Welcome Guest, Not a member yet? Register   Sign In
Get image url from model good practice?
#11

(This post was last modified: 11-11-2015, 04:00 AM by sintakonte.)

i would never ever attach a class which represents a data object together with a model because there are cases where you just need the object
so this is in my opinion a wrong approach

thats because i wrote the autoloader as a hook because of its clean technique. You dont have to be worried about another hook who eventually needs an object because it gets as a pre controller hook loaded and you will see if your system grows and grows this approach helps you a lot

@dubefx

i know the customer result object function and it gets used if i dont need to initialize my custom objects or attach any other object to
but in most cases i need to iterate over (but of course your approach is right too)
Reply


Messages In This Thread
RE: Get image url from model good practice? - by sintakonte - 11-11-2015, 03:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB