in reply to How to move hard coded URL in tt files to a Catalyst module file
move the hard coded URL in tt file to POST a form
If you want to move any element from the template to the module, it's quite a simple matter of assigning it to a stash variable:
Then you can call it from the template:$c->stash('action' => 'http://example.org/cgi-bin/download.pl');
<form action="[% action %]" method="POST">
However, for a better answer to your case, I suggest showing the template code as well, and maybe some more information about the task in hand.
Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert
|
---|
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:46 UTC | |
Re^2: How to move hard coded URL in tt files to a Catalyst module file
by alwynpan (Acolyte) on Nov 07, 2016 at 06:07 UTC |