Hi, sometimes I need a function which I only use in one controller (file) and nowhere else (e.g. a function for form validation). Are there any recommendations where I could/should put those functions? Previously I put them in a model file but this is probably not optimal since the model file is available everywhere. Now I put the function in the controller file itself but here the problem is that this function is also available from outside (ajax) and not just within my controllers. Another option would be a module but this is rather complicated for those small functions. Any suggestions?
thanks, Alex -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.