[Catalyst-commits] r12438 - trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller

zamolxes at dev.catalyst.perl.org zamolxes at dev.catalyst.perl.org
Sun Dec 20 15:17:31 GMT 2009


Author: zamolxes
Date: 2009-12-20 15:17:30 +0000 (Sun, 20 Dec 2009)
New Revision: 12438

Modified:
   trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm
Log:
hit it


Modified: trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm
===================================================================
--- trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm	2009-12-19 23:51:32 UTC (rev 12437)
+++ trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm	2009-12-20 15:17:30 UTC (rev 12438)
@@ -48,7 +48,11 @@
     closedir DIR;
 
     my $year = pop @years || $c->stash->{now}->year;
-    $c->go( $self->action_for('year'), [$year], []);
+#    $c->go( $self->action_for('year'), [$year], []);
+    $c->stash->{year}     = $year;
+    $c->stash->{calendar} = calendar( 12, $year );
+    $c->stash->{template} = 'year.tt';
+
 }
 
 =head2 get_year




More information about the Catalyst-commits mailing list