If you create a function in a model, it will be available everywhere (controllers, views). If you create it in the controller, it will only be available from that controller.
On Oct 31, 2:26 pm, Sebastian Brandt <[email protected]> wrote: > Hi everyone, > > I have 2 questions: > > 1. Is there a special place where I should place self defined > functions (controller maybe?) > > 2. If I add a function in my controller with def foobar: can I call it > in the view by blabla(argument_here)? > > Thanks in advance, > Regards, > > Sebastian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

