Use of Closures in Views |
Interesting concept, but in my opinion this is the same as a helper function you would call from the view. Except that with a helper function you can reuse it in other views and it's easier to search where it's called in your code. But I guess there are situations where it's better to use a closure like you did.
|
Welcome Guest, Not a member yet? Register Sign In |