Hi Massimo
Firstly - amazing work on web2py - undoubtedly the best web framework
I've come across :)
I'm using essentially the same syntax you've written (I didn't put the
braces in my example) and it works fine. What I want to do is expose a
new url like /user/login or /user/register called /user/combinedLogin.
I've tried this in default/user.html:
{{if request.args(0)=="combinedLogin":}}
{{=auth.login()}}
{{=auth.register()}}
but of course, when I browse to myapp/default/user/combinedLogin, I
get a 404.
How can I achieve this?
On Apr 22, 9:53 pm, mdipierro <[email protected]> wrote:
> How about
>
> {{extend 'layout.html'}}
> <h2>Login</h2>
> {{=auth.login()}}
> <h2>Register</h2>
> {{=auth.register()}}
>
> On Apr 22, 3:49 pm, scausten <[email protected]> wrote:
>
>
>
> > Hi,
>
> > Bit of a noob question (sorry) but I'd like to add a page "/user/
> > combinedLogin" to my app, which combines the login and register forms,
> > but can't work it out. This:
>
> > if request.args(0)=="login":
> > =auth.login()
> > =auth.register()
>
> > works fine, but I'd like to expose a new url (/user/combinedLogin).
>
> > Any ideas?
>
> > Si
>
> > --
> > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en