X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F03_MoreCatalystBasics.pod;h=ffd01befef9115434c983c41cbb0a81a1c89f11c;hp=aef37dbb5b3b9eefcbe91b83767bdea01cc58095;hb=5a82cb361e4a283dede371331f437bfd05ccba14;hpb=5988477160c698d0e5efd1cf1911845d40a327cf diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index aef37db..ffd01be 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -1213,10 +1213,10 @@ C<$book-Ebook_author-Efirst-Eauthor-Elast_name> (we will see examples on how to use DBIx::Class objects in your code soon, but note that because C<$book-Ebook_author> can return multiple authors, we have to use C to display a single author). -C allows us to use the shorter C<$book-Eauthor- -Efirst-Elast_name>. Note that you cannot define a -C relationship without also having the C -relationship in place. +C allows us to use the shorter +C<$book-Eauthor-Efirst-Elast_name>. Note that you cannot +define a C relationship without also having the +C relationship in place. Then edit C and add relationship information as follows (again, be careful to put in above the C<1;> but @@ -1297,11 +1297,11 @@ the "empty" table cell "" with the following: [% # NOTE: See Chapter 4 for a better way to do this! -%] [% # First initialize a TT variable to hold a list. Then use a TT FOREACH -%] [% # loop in 'side effect notation' to load just the last names of the -%] - [% # authors into the list. Note that the 'push' TT vmethod does not print -%] + [% # authors into the list. Note that the 'push' TT vmethod doesn't return -%] [% # a value, so nothing will be printed here. But, if you have something -%] - [% # in TT that does return a method and you don't want it printed, you -%] - [% # can: 1) assign it to a bogus value, or 2) use the CALL keyword to -%] - [% # call it and discard the return value. -%] + [% # in TT that does return a value and you don't want it printed, you -%] + [% # 1) assign it to a bogus value, or -%] + [% # 2) use the CALL keyword to call it and discard the return value. -%] [% tt_authors = [ ]; tt_authors.push(author.last_name) FOREACH author = book.authors %] [% # Now use a TT 'virtual method' to display the author count in parens -%]