my $r = bless { config => $class->config }, $class;
$r->get_request($req);
$r->parse_location();
+ warn "Request path: $r->{path}" if $r->debug;
my $status = $r->handler_guts();
return $status unless $status == OK;
$r->send_output;
my $caller = caller(0);
no strict 'refs';
push @{"${caller}::ISA"}, $self;
- "Maypole::$_"->require && unshift @ISA, "Maypole::$_" foreach (@plugins);
+ foreach (@plugins) {
+ "Maypole::$_"->require or warn qq(Loading plugin "Maypole::$_" failed);
+ unshift @ISA, "Maypole::$_";
+ }
}
if ( $ENV{MOD_PERL} ) {
- require Apache::MVC;
+ require Apache::MVC or die 'Loading Apache frontend failed';
push @ISA, qw(Apache::MVC);
}
else {
- require CGI::Maypole;
+ require CGI::Maypole or die 'Loading CGI frontend failed';
push @ISA, qw(CGI::Maypole);
}
);
$config->{classes} = [ $config->{loader}->classes ];
$config->{tables} = [ $config->{loader}->tables ];
+ warn( 'Loaded tables: ' . join ',', @{ $config->{tables} } )
+ if $namespace->debug;
}
sub class_of {
}
1;
-