OSDN Git Service
(root)
/
invent
/
invent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Изменено меню
[invent/invent.git]
/
models
/
ContactForm.php
diff --git
a/models/ContactForm.php
b/models/ContactForm.php
index
45b8e50
..
99d6323
100644
(file)
--- a/
models/ContactForm.php
+++ b/
models/ContactForm.php
@@
-53,7
+53,8
@@
class ContactForm extends Model
*/
public function contact($email)
{
- if ($this->validate()) {
+ if ($this->validate())
+ {
Yii::$app->mailer->compose()
->setTo($email)
->setFrom([Yii::$app->params['senderEmail'] => Yii::$app->params['senderName']])