in reply to How to move hard coded URL in tt files to a Catalyst module file
Pretty sure I follow but as mentioned already, you have not given enough code to know for sure. The module file is going to be a Controller. Named something like, MyApp::Controller::Widget.
In your template you will set the action of the form by using the dynamically generated action->URI of the controller–
<form action="[% c.uri_for_action("/widget/download") %]" method="POST +">
There are several different ways to do what you want. Catalyst is not what I would recommend for learning Perl. Sounds like this is work related so good luck but the learning curve here is quite steep and assumes Perl knowledge.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to move hard coded URL in tt files to a Catalyst module file
by alwynpan (Acolyte) on Nov 07, 2016 at 07:28 UTC | |
by Your Mother (Archbishop) on Nov 07, 2016 at 12:18 UTC |