Help for this page

Select Code to Download


  1. or download this
            # Add a record to the join table for this book, mapping to 
            # appropriate author
    ...
            
            # Assign the Book object to the stash for display in the view
            $c->stash->{book} = $book;
    
  2. or download this
         
        sub list : Local {
            # Retrieve the usual Perl OO '$self' for this object. $c is th
    +e Catalyst
    ...
            # your controllers).
            $c->stash->{template} = 'books/list.tt2';
        }