I recently decided to try web2py and so I am going through the
tutorials in Chapter 3.
I have Version 1.98.2. When I got to the Say My Name Example, I
followed the steps, but I found out that I have to add
response.generic_patterns = ['*'] because I kept getting "Invalid
View".
Ok, so in my default controller I did this:
def first():
response.generic_patterns = ['*']
return dict()
def second():
response.generic_patterns = ['*']
return dict()
Then under views, I created first.html and second html:
<<<<first.html>>>>
{{extend 'layout.html'}}
What is your name?
<form action="second">
<input name="visitor_name" />
<input type="submit" />
</form>
<<<<second.html>>>>
{{extend 'layout.html'}}
<h1> Hello {{=request.vars.visitor_name}}</h1>
Now when I try to see first.html, it just displays "First" as a title,
but no form is present.
Any ideas why this is happening??
Thank you!