[Catalyst-commits] r12819 -
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sun Feb 7 09:20:29 GMT 2010
Author: caelum
Date: 2010-02-07 09:20:28 +0000 (Sun, 07 Feb 2010)
New Revision: 12819
Modified:
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod
Log:
no need to set resultset_class with load_namespaces, and a couple other minor changes
Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod 2010-02-07 09:19:26 UTC (rev 12818)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod 2010-02-07 09:20:28 UTC (rev 12819)
@@ -414,7 +414,7 @@
sub hello :Global {
my ( $self, $c ) = @_;
- $c->stash->{template} = 'hello.tt';
+ $c->stash(template => 'hello.tt');
}
This time, instead of doing C<$c-E<gt>response-E<gt>body()>, you are
Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod 2010-02-07 09:19:26 UTC (rev 12818)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod 2010-02-07 09:20:28 UTC (rev 12819)
@@ -308,7 +308,7 @@
# Set the TT template to use. You will almost always want to do this
# in your action methods (action methods respond to user input in
# your controllers).
- $c->stash->{template} = 'books/list.tt2';
+ $c->stash(template => 'books/list.tt2');
}
B<TIP>: See Appendix 1 for tips on removing the leading spaces when
@@ -839,7 +839,7 @@
# Set the TT template to use. You will almost always want to do this
# in your action methods (action methods respond to user input in
# your controllers).
- $c->stash->{template} = 'books/list.tt2';
+ $c->stash(template => 'books/list.tt2');
}
B<TIP>: You may see the C<$c-E<gt>model('DB::Book')> un-commented
@@ -1430,7 +1430,7 @@
# Set the TT template to use. You will almost always want to do this
# in your action methods (actions methods respond to user input in
# your controllers).
- #$c->stash->{template} = 'books/list.tt2';
+ #$c->stash(template => 'books/list.tt2');
}
Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod 2010-02-07 09:19:26 UTC (rev 12818)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod 2010-02-07 09:20:28 UTC (rev 12819)
@@ -1110,15 +1110,6 @@
1;
-Then we need to tell the Result Class to to treat this as a ResultSet
-Class. Open C<lib/MyApp/Schema/Result/Book.pm> and add the following
-above the "C<1;>" at the bottom of the file:
-
- #
- # Set ResultSet Class
- #
- __PACKAGE__->resultset_class('MyApp::Schema::ResultSet::Book');
-
Then add the following method to the C<lib/MyApp/Controller/Books.pm>:
=head2 list_recent
More information about the Catalyst-commits
mailing list