Skip to content

Commit

Permalink
Updating docs for using the default Zend\Db Storage adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
ojhaujjwal committed Jun 28, 2014
1 parent a05285e commit 0169093
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/storage-adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ Storage Adapters
Use this adapter if you want to use `Zend\Db` for settings persistence.

#### How
Import the MySQL schema located in `vendor/hrevert/ht-settings-module/data/schema.sql` if you use MySQL.
1. Import the MySQL schema located in `vendor/hrevert/ht-settings-module/data/schema.sql` if you use MySQL.
2. Install [ZfcBase](https://github.com/ZF-Commons/ZfcBase) by adding `"zf-commons/zfc-base": "0.1.*"` to require section of composer.json
3. Add the following config:
```php
return [
'ht_settings' => [
// This is optional.
// You can specify this is config/autoload/ht-settings-module.global.php
'parameter_entity_class' => 'HtSettingsModule\Entity\IdAwareParameter',
]
];
```

## XML Adapter
Use this adapter if you want to store settings in XML format.
Expand Down Expand Up @@ -47,4 +58,4 @@ return [
]
]
];
```
```

0 comments on commit 0169093

Please sign in to comment.