for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace humhub\modules\patreon\models;
use Yii;
/**
* ConfigureForm defines the configurable fields.
*/
class ConfigureForm extends \yii\base\Model
{
public $serverUrl;
* @inheritdoc
public function rules()
return [
['serverUrl', 'string'],
];
}
public function attributeLabels()
'serverUrl' => Yii::t('PatreonModule.base', 'Patreon Widget URL:'),
public function attributeHints()
'serverUrl' => Yii::t('PatreonModule.base', 'e.g. https://www.patreon.com/bePatron?u={id}'),
public function loadSettings()
$this->serverUrl = Yii::$app->getModule('patreon')->settings->get('serverUrl');
return true;
public function save()
Yii::$app->getModule('patreon')->settings->set('serverUrl', $this->serverUrl);