Skip to content

Commit

Permalink
Automatically apply extension to SilverStripe forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Haine committed Mar 21, 2018
1 parent 7b40551 commit c112e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ composer require andrewhaine/silverstripe-form-capture
## Initialisation
After installing you will need to run 'dev/build' and add the module extension to the form class or any subclass of form that you wish to store.

### Adding the extension:

In 'mysite.yml':

```yaml
SilverStripe\Forms\Form:
extensions:
- SSFormCapture\Extension\FormCaptureExtension
```
## Usage
To store submissions from a form simply add a call to the new method in the function you will use to handle the form. See the example below for usage

Expand Down
3 changes: 3 additions & 0 deletions _config/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
Name: ssformcapture
---
SilverStripe\Forms\Form:
extensions:
- SSFormCapture\Extension\FormCaptureExtension

0 comments on commit c112e75

Please sign in to comment.