...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<?php
public function MyController extends AppController {
...
public function index() {
$this->components(array("SettingsCollection"));
// Fetch all Client Group settings
$client_group_id = 1;
$client_group_settings = $this->SettingsCollection->fetchClientGroupSettings($client_group_id);
// Take a look at the client group settings
foreach ($client_group_settings as $setting)
echo $setting->key . ": " . $setting->value;
}
}
?> |
Code Block | ||
---|---|---|
| ||
autodebit: true inv_days_before_renewal: 1 autosuspend: true default_currency: USD |