-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use SettingAction form a custom form #49
Comments
Hi Roberto. There's an example of how to use the settings action in the readme file. If you have any problems with those instructions please show me what you have so far and I'll try to help you get it working. |
Thanks arisk,
in views\site\azienda-settings.php
in controllers\SiteController.php:
when I try index.php?r=site/azienda-settings |
I think that you forgot to add submit button in your view: <?php $form = ActiveForm::begin(['id' => 'social-service-form']); ?>
<?= $form->field($model, 'twitter') ?>
<?= $form->field($model, 'google') ?>
<?= $form->field($model, 'facebook') ?>
<?= $form->field($model, 'youtube') ?>
<?= $form->field($model, 'linkedin') ?>
<?= $form->field($model, 'pinterest') ?>
<?= $form->field($model, 'vimeo') ?>
<?= $form->field($model, 'instagram') ?>
<?= $form->field($model, 'vk') ?>
<?= $form->field($model, 'ok') ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?> |
thanks demogorgorn, |
Have a look at this comment to configure your translations correctly. #51 (comment) |
Yesss!!!!!!! it works!!!!! |
You're welcome :) |
having the same issue. Any fix ? |
Hi,
I tried to use SettingAction to make a custom form to handle a setting category. There are several things I did not understand, so it doesn't work. Could you please provide an fully working example?
thanks Roberto
The text was updated successfully, but these errors were encountered: