Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ebcddeee22
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (31 sloc) 0.812 kb
package TestApp::Web::Controller::Root;
use Angelos::Class;
use Angelos::Utils;
extends 'Angelos::Controller';
with 'Angelos::Class::Localizable';
sub index {
my ( $self, $c, $params ) = @_;
$self->log(
level => 'debug',
message => 'index method in Root controller',
);
#$c->redirect('http://www.google.co.jp');
#$c->res->body('HelloWorld');
}
sub tt {
my ( $self, $c, $params ) = @_;
$c->view('TT')->render( { name => 'Yamada Taro' } );
}
sub japanese {
my ($self, $c, $params) = @_;
warn $self->loc('Hello') . "\n";
}
sub forward {
my ($self, $c, $params) = @_;
$c->forward(controller => 'Books', action => 'index');
}
sub detach {
my ($self, $c, $params) = @_;
$c->detach(controller => 'Books', action => 'index');
}
__END_OF_CLASS__
Jump to Line
Something went wrong with that request. Please try again.