设置YiiMail扩展时出错

时间:2014-07-21 13:33:56

标签: php yii frameworks yii-extensions yii-components

我正在尝试设置YiiMail,并且出现以下错误消息:

Error 500
 Alias "ext.yii-mail.YiiMail" is invalid. Make sure it points to an existing PHP file and the file is readable.enter code here

我已将YiiMail扩展放在以下目录中:

/myapp/protected/extensions/
/myapp/protected/extensions/mail/
/myapp/protected/extensions/mail/YiiMail.php
/myapp/protected/extensions/mail/YiiMailMessage.php

任何人都可以解释为什么我会收到此错误,因为它似乎位于正确的扩展目录中(包含所有其他现有扩展名)

我已将以下内容添加到组件部分的配置数组中:

 'mail' => array(
            'class' => 'ext.yii-mail.YiiMail',
            'transportType' => 'php',
            'viewPath' => 'application.views.mail',
            'logging' => false,
            'dryRun' => false
        ),

以下是配置数组的导入部分

'import' => array('ext.mail.YiiMailMessage'),

1 个答案:

答案 0 :(得分:0)

'class'数组项目不正确 - 现在好了