And he can't?? wait, I am lost.
I need from some url like that:
www.mysite.com/lang/
or
www.mysite.com/lang/blog
or
www.mysite.com/lang/category
to get 'lang'
and do something like:
var = get_lang()
and late do:
T.force(var)
But how can I get lang?
PD: i can't even make the pattern-bassed router works.
Greetings.
El 11/07/16 a las 10:36, Anthony escribió:
On Monday, July 11, 2016 at 8:55:52 AM UTC-4, Carlos Cesar Caballero
wrote:
Thanks Anthony, I'll work in that, in my opinion the router is a
very important feature.
Note, I think the grid would preserve a URL var, and you could
explicitly configure it to preserve a URL arg as well.
I suppose it might be nice if the pattern-based rewrite system could
be made to store and extract URL components in attributes of the
request object (the way the parameter-based router handles languages
via the URL) rather than being limited to simply rewriting the URL itself.
Anthony
--
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 web2py+unsubscr...@googlegroups.com
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.