diff --git a/README.md b/README.md index 37797b2..9407371 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ $mail = new YiiMailer('contact', array('message' => 'Message to send', 'name' => or
$mail = new YiiMailer(); -$mail -> setView('contact'); -$mail -> setData(array('message' => 'Message to send', 'name' => 'John Doe', 'description' => 'Contact form')); +$mail->setView('contact'); +$mail->setData(array('message' => 'Message to send', 'name' => 'John Doe', 'description' => 'Contact form'));Layout is automatically set from config but you may override it with $mail->setLayout('layoutName') @@ -55,4 +55,4 @@ if ($mail->Send()) { ## Examples -Two examples included: one for standard contact form in yii webb app and the other one for yii console app. \ No newline at end of file +Two examples included: one for standard contact form in yii web app and the other one for yii console app. \ No newline at end of file