Help for this page

Select Code to Download


  1. or download this
      use NonCatalyst::FileCat;
      my $fc = NonCatalyst::FileCat->new($c->config->{file_directory});
      my $file_name = $c->request->params->{file};
      $c->stash->{result} = $fc->cat($file_name);
    
  2. or download this
      $c->stash->{result} = $c->model("FileCat")->cat($c->request->params-
    +>{file});