=head1 LOG STATEMENTS
Folks in the former group can use Catalyst's C<$c-E<gt>log> facility.
-(See L<Catalyst::Log|Catalyst::Log> for more detail.) For example, if
+(See L<Catalyst::Log> for more detail.) For example, if
you add the following code to a controller action method:
$c->log->info("Starting the foreach loop here");
-
+
$c->log->debug("Value of \$id is: ".$id);
Then the Catalyst development server will display your message along
$c->log->error
$c->log->fatal
-You can also use L<Data::Dumper|Data::Dumper> in both Catalyst code
+You can also use L<Data::Dumper> in both Catalyst code
(C<use Data::Dumper; $c-E<gt>log-E<gt>debug("\$var is: ".Dumper($var));)>)
and TT templates (C<[% Dumper.dump(book) %]>.
# 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];
-
+
# Set the TT template to use. You will almost always want to do this
# in your action methods.
$c->stash->{template} = 'books/list.tt2';
mkdir -p lib/Module; cp `perldoc -l Module::Name` lib/Module/
-Note: If you are following along in Debian 5 or Ubuntu, you will
+Note: If you are following along in Debian 6 or Ubuntu, you will
need to install the C<perl-doc> package to use the C<perldoc> command.
Use C<sudo aptitude install perl-doc> to do that.
For example, you could make a copy of
-L<Catalyst::Plugin::Authentication|Catalyst::Plugin::Authentication>
+L<Catalyst::Plugin::Authentication>
with the following command:
mkdir -p lib/Catalyst/Plugin; cp \
There are a variety of options you can use, such as 'undef', 'all',
'service', 'context', 'parser' and 'provider'. See
-L<Template::Constants|Template::Constants> for more information
+L<Template::Constants> for more information
(remove the C<DEBUG_> portion of the name shown in the TT docs and
convert to lower case for use inside Catalyst).