X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F07_Debugging.pod;h=bf35d96c003d175229240be8dd45b19cf32073b6;hp=1644a851600e0339db3ce7cb330e6473f532ab0b;hb=aa7ff3257b8cc635010cfa8caee47a45efcab1f6;hpb=8aa1e01aa82fc0df32eefd980a04f6e698acd0c8 diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index 1644a85..bf35d96 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -118,14 +118,14 @@ C line as follows inside the C method (I like to "left-justify" my debug statements so I don't forget to remove them, but you can obviously indent them if you prefer): - sub list : Local { + sub list :Local { # Retrieve the usual Perl OO '$self' for this object. $c is the Catalyst # 'Context' that's used to 'glue together' the various components # that make up the application my ($self, $c) = @_; $DB::single=1; - + # Retrieve all of the book records as book model objects and store in the # stash where they can be accessed by the TT template $c->stash->{books} = [$c->model('DB::Book')->all];