Commit 8d8a7cea authored by andre's avatar andre

отладка мэйлера

parent ceec46e7
......@@ -171,40 +171,7 @@ class FaqController extends BaseController
public function actionSendFaq()
{
if(!count(Yii::$app->request->post())) {
?>
<form id="contact-form" class="validateform_2" action="/faq/faq/send-faq/3" method="post"><input
type="hidden" name="_csrf" value="ZzZNRk41dnlVZw4pd3YSNlYABCMnex4LFl86L3xwQRUKGyAXCRgVLg==">
<div class="form-group field-faqmailform-fio required"><input type="text" id="faqmailform-fio"
class="form-control"
name="FaqMailForm[fio]"
placeholder="Ваше имя">
<div class="help-block"></div>
</div>
<div class="form-group field-faqmailform-email required"><input type="text" id="faqmailform-email"
class="form-control"
name="FaqMailForm[email]"
placeholder="E-mail">
<div class="help-block"></div>
</div>
<div class="form-group field-faqmailform-phone"><input type="text" id="faqmailform-phone"
class="form-control phone"
name="FaqMailForm[phone]" placeholder="Телефон">
<div class="help-block"></div>
</div>
<div class="form-group field-faqmailform-message required"><textarea id="faqmailform-message"
class="form-control"
name="FaqMailForm[message]"
placeholder="Текст вопроса"
style="height: 175px;"></textarea>
<div class="help-block"></div>
</div>
<button type="submit" class="btn_blue">Задать вопрос</button>
</form>
<?
die;
}
// Yii::$app->response->format = Response::FORMAT_JSON;
Yii::$app->response->format = Response::FORMAT_JSON;
$mailModel = new FaqMailForm();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment