a few doc fixes
Brian Cassidy [Tue, 12 May 2009 18:25:31 +0000 (18:25 +0000)]
lib/Catalyst/Helper/View/TTSite.pm
lib/Catalyst/View/TT.pm

index 2943d29..2a88f91 100644 (file)
@@ -66,7 +66,7 @@ Catalyst::Helper::View::TTSite - Helper for TT view which builds a skeleton web
     
     sub end : Private {
         my ( $self, $c ) = @_;
-        $c->forward('MyApp::V::TT');
+        $c->forward( $c->view('TT') );
     }
 
 =head1 DESCRIPTION
index cc31819..468cdc8 100644 (file)
@@ -51,7 +51,7 @@ Catalyst::View::TT - Template View Class
         my ( $self, $c ) = @_;
         $c->stash->{template} = 'message.tt2';
         $c->stash->{message}  = 'Hello World!';
-        $c->forward('MyApp::View::TT');
+        $c->forward( $c->view('TT') );
     }
 
 # access variables from template
@@ -283,7 +283,9 @@ something like this:
     package FooBar::View::TT;
     
     use strict;
-     use base 'Catalyst::View::TT';
+    use warnings;
+    
+    use base 'Catalyst::View::TT';
 
     __PACKAGE__->config->{DEBUG} = 'all';
 
@@ -296,7 +298,7 @@ to the TT view class.
     
     sub end : Private {
         my( $self, $c ) = @_;
-        $c->forward('MyApp::View::TT');
+        $c->forward( $c->view('TT') );
     }
 
 =head2 CONFIGURATION