试图安装邮箱yii扩展,按照安装说明,但出现错误。不知道如何解决。这是链接扩展http://www.yiiframework.com/extension/mailbox/邮箱扩展yii错误
这里是错误跟踪:
Alias "mailbox.MailboxModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
Z:\home\localhost\www\Kare2Match\framework\YiiBase.php(316)
304 if($isClass && (class_exists($className,false) || interface_exists($className,false)))
305 return self::$_imports[$alias]=$className;
306
307 if(($path=self::getPathOfAlias($alias))!==false)
308 {
309 if($isClass)
310 {
311 if($forceInclude)
312 {
313 if(is_file($path.'.php'))
314 require($path.'.php');
315 else
316 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias)));
317 self::$_imports[$alias]=$className;
318 }
319 else
320 self::$classMap[$className]=$path.'.php';
321 return $className;
322 }
323 else // a directory
324 {
325 if(self::$_includePaths===null)
326 {
327 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
328 if(($pos=array_search('.',self::$_includePaths,true))!==false)
+ Z:\home\localhost\www\Kare2Match\framework\YiiBase.php(196): YiiBase::import("mailbox.MailboxModule", true)
+ Z:\home\localhost\www\Kare2Match\framework\base\CModule.php(282): YiiBase::createComponent("mailbox.MailboxModule", "mailbox", null, array("userClass" => "PersonAbstract", "userIdColumn" => "k2m_internal_id", "usernameColumn" => "nickname"))
+ Z:\home\localhost\www\Kare2Match\framework\web\CWebApplication.php(337): CModule->getModule("mailbox")
+ Z:\home\localhost\www\Kare2Match\framework\web\CWebApplication.php(276): CWebApplication->createController("mailbox")
+ Z:\home\localhost\www\Kare2Match\framework\web\CWebApplication.php(141): CWebApplication->runController("mailbox")
需要它帮助。
我按照指示,只有4个步骤:解压到模块目录。 安装data/structure.sql – Serghei 2013-02-25 20:49:07
别名'mailbox.MailModule'指向何处? – Stuart 2013-02-25 20:55:52