Created
August 19, 2014 08:27
-
-
Save anonymous/f9d276754dc7cb75bfc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Narf::Controller::Example; | |
use Mojo::Base 'Mojolicious::Controller'; | |
use Data::Dumper; | |
sub welcome { | |
my $self = shift; | |
$self->session(foo => 123); | |
print Dumper $self->session; | |
print Dumper $self->app->session; | |
$self->render(msg => 'Welcome to the Mojolicious real-time web framework!'); | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment