diff options
author | Zach Copley <zach@status.net> | 2009-11-18 00:00:05 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-11-18 00:00:05 -0800 |
commit | 7e0af928132c8eda2f25943b9a316e8ddf6f9a41 (patch) | |
tree | 15e764f6f26154e073fb808c6bb08032c44ed32a /lib | |
parent | 7551464d239a77d3f23b02a8f84ea78ebc282b2e (diff) |
First draft of the admin panel for site design
Diffstat (limited to 'lib')
-rw-r--r-- | lib/form.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/form.php b/lib/form.php index 87b7a5cba..868c986b9 100644 --- a/lib/form.php +++ b/lib/form.php @@ -67,7 +67,7 @@ class Form extends Widget { $attributes = array('id' => $this->id(), 'class' => $this->formClass(), - 'method' => 'post', + 'method' => $this->method(), 'action' => $this->action()); if (!empty($this->enctype)) { @@ -120,6 +120,18 @@ class Form extends Widget } /** + * HTTP method used to submit the form + * + * Defaults to post. Subclasses can override if they need to. + * + * @return string the method to use for submitting + */ + function method() + { + return 'post'; + } + + /** * Buttons for form actions * * Submit and cancel buttons (or whatever) |