2009年1月27日星期二

[fw-mvc] Action view helper question

Which is better?

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.

没有评论: