alwynpan has asked for the wisdom of the Perl Monks concerning the following question:
The task is to move the hard coded URL in tt file to POST a form to http://example.org/cgi-bin/download.pl to the module file. I can't figure out how can I achieve this. Thank you.sub download :Local :Args(0) { my ( $self, $c ) = @_; my $user_given_job_id = $c->request->params->{job_id}; my $impute_job = $c->user->jobViews->search({id => $user_given_job +_id, status => 10})->first(); $c->model('DB::task')->create({name => 'send_access_key', paramete +rs => {job_id => $impute_job->id()}, active => 1}); $c->stash->{template} = 'download.tt'; $c->stash->{jobid} = $impute_job->id(); $c->stash->{jobname} = $impute_job->name(); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to move hard coded URL in tt files to a Catalyst module file
by Erez (Priest) on Nov 01, 2016 at 10:32 UTC | |
by alwynpan (Acolyte) on Nov 07, 2016 at 07:46 UTC | |
by alwynpan (Acolyte) on Nov 07, 2016 at 06:07 UTC | |
Re: How to move hard coded URL in tt files to a Catalyst module file
by Your Mother (Archbishop) on Nov 01, 2016 at 12:40 UTC | |
by alwynpan (Acolyte) on Nov 07, 2016 at 07:28 UTC | |
by Your Mother (Archbishop) on Nov 07, 2016 at 12:18 UTC | |
Re: How to move hard coded URL in tt files to a Catalyst module file
by haukex (Archbishop) on Nov 01, 2016 at 10:06 UTC |