index product
{
source = product
path = c:/sphinx/data/product
rt_attr_string = name
rt_field = name
docinfo = extern
morphology = stem_enru, soundex, metaphone
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42C->U+430..U+44C, U+42E..U+42F->U+44E..U+44F, U+430..U+44C, U+44E..U+44F, U+0401->U+0435, U+0451->U+0435, U+042D->U+0435, U+044D->U+0435
min_prefix_len = 3
min_infix_len = 0
min_stemming_len = 3
min_word_len = 3
phrase_boundary = :, - , . , $
phrase_boundary_step = 100
html_strip = 1
expand_keywords = 1
index_exact_words = 1
dict = keywords
}
url: 'mysite.ru/site/message',
list($path, $webPath) = Yii::$app->getAssetManager()->publish(__DIR__."/assets");
$this->getView()->registerJsFile($webPath."/js/login.js",['depends' => ['yii\bootstrap\BootstrapAsset']]);
/*в конфиге*/
'components' => [
'mail' => [
'class' => 'yii\swiftmailer\Mailer',
],
]
/*где нужно отправить письмо*/
$mail = Yii::$app->mail;
$mail->htmlLayout = "layouts/admin";
$mail->compose('@app/mail/changePassword/html.php', $arParams)
->setFrom(['web-dev@example.com' => Yii::$app->name])
->setTo($this->email)
->setSubject('Восстановление пароля на сайте ' . Yii::$app->name)
->send();
/*$arParams - параметры передаваемые в шаблон письма*/