You can use the parameter-based router. The router takes a "functions" key,
which can be a dictionary with a key for each controller containing a list
of valid functions within the controller. This allows the router to
distinguish args after the default function from other valid functions in
the controlller.
routers = dict(
BASE=dict(
default_application='myapp',
default_controller='default',
default_function='index',
functions=dict(default=['list', 'of', 'functions', 'in', 'default',
'controller'],
blog=['index'])
)
)
Anthony
On Monday, November 3, 2014 8:59:37 AM UTC-5, Carlos Cesar Caballero Díaz
wrote:
>
> Hi, I have an app that have (among others) a blog controller, it only
> has an index function, and I need that index never shows in the
> controller url call, for example, if I call myapp/blog/test, I need that
> "test" pass to index as an argument, and I need that behavior only in
> the blog controller. I will appreciate any help with this.
>
> --
> Nunca digas nunca, di mejor: gracias, permiso, disculpe.
>
> Este mensaje le ha llegado mediante el servicio de correo electronico que
> ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
> Nacional de Salud. La persona que envia este correo asume el compromiso de
> usar el servicio a tales fines y cumplir con las regulaciones establecidas
>
> Infomed: http://www.sld.cu/
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.