C::C::CGIBin - added test for __DATA__ (failing for some reaosn)
[catagits/Catalyst-Controller-WrapCGI.git] / t / lib / TestCGIBin / Controller / CGIHandler.pm
CommitLineData
21a20b7e 1package TestCGIBin::Controller::CGIHandler;
2
3use parent 'Catalyst::Controller::CGIBin';
4
9cc2dd4c 5sub cgi_path {
6 my ($self, $cgi) = @_;
7 return "my-bin/$cgi";
8}
9
21a20b7e 10# try out a forward
11sub dongs : Local Args(0) {
12 my ($self, $c) = @_;
fbaba9dd 13 $c->forward('/cgihandler/CGI_path__test_pl');
21a20b7e 14}
15
16# try resolved forward
17sub mtfnpy : Local Args(0) {
18 my ($self, $c) = @_;
c264816e 19 $c->forward($self->cgi_action('path/test.pl'));
21a20b7e 20}
21
221;