From eef6811000451c02759b6c4044230009f24feca3 Mon Sep 17 00:00:00 2001 From: Vernes Siljegovic Date: Sat, 2 Feb 2013 17:51:17 +0100 Subject: [PATCH] Fixed README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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