diff options
author | Malf Furious <m@lfurio.us> | 2017-06-27 01:31:20 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-06-27 01:31:20 -0400 |
commit | ef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9 (patch) | |
tree | 38572f1e44dc98d62ac454300743df8c9ee49b96 /app | |
parent | c8d6725f2dfb378c744c569df1b9981623808c87 (diff) | |
download | scrott-ef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9.tar.gz scrott-ef3e1c66e8a233c1ee44fbfaa9ef665bec1ffea9.zip |
Add formname template to formctrl view
Diffstat (limited to 'app')
-rw-r--r-- | app/view/formctrl.php | 4 |
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 { ?> |