On Wednesday, April 6, 2011 9:38:21 AM UTC-4, w2padawan wrote: > > following the example above, how can I call _test() from outside test() ?
You don't have to put '_test' inside of 'test' (he was probably just assuming you only wanted to use it inside your 'test' action). You could put the function anywhere in your controller, or in a model file (all functions defined in your model files are visible to your controllers), or put it in a module and import it (though if you do that, the function will not be able to see the web2py global objects, so you'd have to pass them in as arguments if you need them in the function).