how would the view know the value to pass to getYTD, unless the controller passed it? but anyway to pass a function to the view, just add it to the model as a method.
remember the view has no data that is not passed to it by the controller. so the controller should just normally pre-calc information.
bruce (sqlwo...
All-Star
37604 Points
5573 Posts
Re: How to past controller customize function into Index View Page
Sep 15, 2011 06:00 AM|LINK
how would the view know the value to pass to getYTD, unless the controller passed it? but anyway to pass a function to the view, just add it to the model as a method.
remember the view has no data that is not passed to it by the controller. so the controller should just normally pre-calc information.