I actually purchased a Hard-Copy edition of the Web2py Manual ( 2nd
edition )
The online book does NOT seem to have page numbers, but look at the
example below.
The Controller myconroller.py contains 1 function called isprime()
mycontroller.py
#
# mycontroller.py can contain multiple functions
#
def isprime( number ) :
#
# this is the isprime function
#
for p in range( 2, number ) :
if number % p :
return False
return True
Do you have a specific question about controllers?
On Aug 16, 10:35 am, David <[email protected]> wrote:
> Ok cool. Where can I find the 2nd Edition of the Web2Py book?
>
> I only see the 3rd edition online.
>
> On Aug 16, 10:22 am, NetAdmin <[email protected]> wrote:
>
> > Look at Chapter 3, Overview ( 2n edition of the manual )
>
> > On Aug 16, 8:50 am, David <[email protected]> wrote:
>
> > > Where is the part which talks about how controllers work and are used
> > > in the web2py book?
> > > I see the DAL and Views but nothing on controllers is obvious here.
>
> > > Thanks,
> > > David