Add a settings for your component. In previous document we have discussed how to add a configure panel for your component. This will cover creating a settings variables for your component.
Covered by Hello World component v2.4
**Registering an action**
In your init function register an action. `ossn_register_action("<action name>", "<full path to action file>")`
Create a file `components/HelloWorld/actions/settings.php`
**Creating a form**
Edit the configure page you created in previous tutorial, `components\HelloWorld\plugins\default\settings\administrator\HelloWorld\settings.php` and register a form
if($settings) {
ossn_trigger_message('Settings has been saved');
} else {
ossn_trigger_message('Settings can not be saved', 'error');
}
redirect(REF);
```
Notice the second paramter for setSettings must be always component ID. Here it is `HelloWorld`
**Getting the settings and pre-fill admin form**
To get settings saved for existing component we will use getSettings method.
```
<?php
$component = new OssnComponents();
$settings = $component->getSettings('HelloWorld');