Get image url from model good practice? |
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) |
Welcome Guest, Not a member yet? Register Sign In |