Myke623
Well-known member
I'm wanting to post-format some data extracted from the database.
I could either iterate through the returned data in the Controller before passing it to the view, or, use a custom helper directly in the view to do any fancy formatting.
Is there a general rule of thumb of when I should consider creating my own helper? Would it be recommended in this particular case?
I could either iterate through the returned data in the Controller before passing it to the view, or, use a custom helper directly in the view to do any fancy formatting.
Is there a general rule of thumb of when I should consider creating my own helper? Would it be recommended in this particular case?