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