---- On Sun, 08 Feb 2015 01:51:15 -0300 Massimo Di Pierro<[email protected]> wrote ---- > ... > Now the fact that one can use them in controllers does not mean one should > do that.
You're right, but sometimes we need to generate HTML from controllers. I.e, when we use SQLFORM.grid() with custom links for each row. The chance to use helpers in controllers is very useful in this case. Otherwise we should create dinamic links with server-side DOM or with javascript. It would bring unecessary complexity. I don't usually use helpers in controllers, but I prefer being a pragmatic than a purist. As you pointed out, Web2py allows us to do it and it is very good. :-) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

