I looked at the link for using 3rd party libraries http://www.yiiframework.com/doc/guide/1.1/en/extension.integration and have tried many ideas, but cannot get PEAR Mail_Queue to work with Yii
The require_once ‘Mail/Queue.php’; works fine in that it finds the Queue.php file properly, but when I call the Class
$queue =& new Mail_Queue($db_options, options);
$mime =& new Mail_mime();
I get the following error
include(Mail_Queue_Container_.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
/var/www/yii-read-only/framework/YiiBase.php(396)
384 * @return boolean whether the class has been loaded successfully
385 */
386 public static function autoload($className)
387 {
388 // use include so that the error PHP file may appear
389 if(isset(self::$_coreClasses[$className]))
390 include(YII_PATH.self::$_coreClasses[$className]);
391 else if(isset(self::$classMap[$className]))
392 include(self::$classMap[$className]);
393 else
394 {
395 if(strpos($className,'\\')===false)
396 include($className.'.php');
397 else // class name with namespace in PHP 5.3
398 {
399 $namespace=str_replace('\\','.',ltrim($className,'\\'));
400 if(($path=self::getPathOfAlias($namespace))!==false)
401 include($path.'.php');
402 else
403 return false;
404 }
405 return class_exists($className,false) || interface_exists($className,false);
406 }
407 return true;
408 }
/var/www/yii-read-only/framework/YiiBase.php(396): YiiBase::autoload()
391 else if(isset(self::$classMap[$className]))
392 include(self::$classMap[$className]);
393 else
394 {
395 if(strpos($className,'\\')===false)
396 include($className.'.php');
397 else // class name with namespace in PHP 5.3
398 {
399 $namespace=str_replace('\\','.',ltrim($className,'\\'));
400 if(($path=self::getPathOfAlias($namespace))!==false)
401 include($path.'.php');
#1
unknown(0): YiiBase::autoload("Mail_Queue_Container_")
#2
unknown(0): spl_autoload_call("Mail_Queue_Container_")
#3
+
–
/home/goalchec/dev/protected/vendors/Mail/Queue.php(217): class_exists("Mail_Queue_Container_")
212 $container_classfile = $container_type . '.php';
213
214 // Attempt to include a custom version of the named class, but don't treat
215 // a failure as fatal. The caller may have already included their own
216 // version of the named class.
217 if (!class_exists($container_class)) {
218 include_once 'Mail/Queue/Container/' . $container_classfile;
219 }
220 if (!class_exists($container_class)) {
221 array_push($this->_initErrors, new Mail_Queue_Error(MAILQUEUE_ERROR_UNKNOWN_CONTAINER,
222 $this->pearErrorMode, E_USER_ERROR, __FILE__, __LINE__));
Has anyone had success with this. On the main Yii page, it says it integrates with PEAR, but I cannot see how to get this to work