I will send an email with mondrillwrap, but I get the error
Non-static method Mandrill::call() should not be called statically, assuming $this from incompatible context
thanks for your help
//create action
public function actionCreate() {
$email = Yii::app()->mandrillwrap;
$model = new User;
$this->performAjaxValidation($model);
if (isset($_POST['User'])) {
$email->subject = "test";
$email->fromName = "user1";
$email->fromEmail = "user1@test.com";
$email->toName = "user2";
$email->toEmail = "user2@test.com";
$model->attributes = $_POST['User'];
if ($model->save()) {
$email->sendEmail();
$this->redirect(array('view', 'id' => $model->user_id)); }}
$this->render('create', array('model' => $model,
));
}
‘mandrillwrap’ => array(
'class' => 'ext.mandrillwrap.mandrillwrap',
),5740