> So my question is this, how should I create helper methods... View helpers
> was my next obvious answer but they need resetting on every loop with the
> new image row... where as rows would already know. I'm also not too keen on
> tons of view helper classes, although one helper per object would be ok.
Your helpers should using "model" class. Design model class that
compose row and table objects to provide access to the data. Helpers
then will be snippet of code that you don't want to repeat in
controllers, while the main funcionalities resides in the model.
--
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://www.sourceforge.net/projects/ossigeno
没有评论:
发表评论