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.
In reply to Re: How to move hard coded URL in tt files to a Catalyst module file
by Your Mother
in thread How to move hard coded URL in tt files to a Catalyst module file
by alwynpan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |