Option #1
Using the action method to collect data and pass (push?) it to the
view through variables
Option #2
Using action view helpers within views to retrieve (pull?) data for display
I've always read that the controller is supposed to prepare everything
for the view. Option #2 seems like a cleaner approach though, so I'm
wondering what you think.
没有评论:
发表评论