summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-27 01:31:20 -0400
committerMalf Furious <m@lfurio.us>2017-06-27 01:31:20 -0400
commitef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9 (patch)
tree38572f1e44dc98d62ac454300743df8c9ee49b96
parentc8d6725f2dfb378c744c569df1b9981623808c87 (diff)
downloadscrott-ef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9.tar.gz
scrott-ef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9.zip
Add formname template to formctrl view
-rw-r--r--app/view/formctrl.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php
index ee0243f..3683eb4 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -15,7 +15,11 @@
namespace formctrl;
?>
+<?php function formname(string $name) : void { ?>
+ <input type="hidden" name="action" value="<?=$name?>" />
+
+<?php } ?>
<?php function text(string $label, string $name, string $value = "", string $placeholder = "",
bool $required = true, bool $disabled = false) : void { ?>