On Tuesday, June 14, 2011 6:55:11 AM UTC-4, Francisco Costa wrote: 
>
> Hello, 
>
> I have this controller (not the default one) that I would like to have 
> a default function (not index) 
>
> How can I do that?

 
If you use the parameter-based URL rewrite system (see 
http://web2py.com/book/default/chapter/04#Parameter-Based-System), you can 
specify default_function in either the BASE router or an application 
specific router, but I think that would set the default function for all 
controllers, not just a particular controller. Otherwise, I suppose you 
could use the pattern-based rewrite system (see 
http://web2py.com/book/default/chapter/04#Pattern-Based-System). Note, the 
two systems cannot be mixed.
 
Anthony

Reply via email to