You can use the generic.html view, though it has limitations regarding how 
it will display your data. If you have a number of functions that all need 
to use the same view, you can simply specify the view explicitly:

def some_function():
    response.view = 'default/my_common_view.html'

Or in a model or at the top of the controller:

if request.function in ['myfun1', 'myfun2', 'myfun3', ...]:
    response.view = 'default/my_common_view.html'

Anthony
On Friday, September 6, 2013 11:16:46 AM UTC-4, kranthi aeronaut wrote:
>
> hii all , i am new to web2py , it seems that in web2py for every function 
> we declare in default.py page , we should also create a new html page with 
> same name of function , is this mandatory or is there any other way to 
> implement the logic ??
>

-- 

--- 
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/groups/opt_out.

Reply via email to