Sorry i meant class_exists().

Durch Motorola verbunden

Carsten Brandt <notifications@github.com> schrieb:

>In framework/YiiBase.php:
>
>> @@ -286,9 +286,17 @@ public static function import($alias,$forceInclude=false) > 					self::$classMap[$alias]=$classFile; > 				return $alias; > 			} > -			else > -				throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory.', > -					array('{alias}'=>$namespace))); > +			else { > +				try > +				{ > +					new ReflectionClass($alias); // autoload the class without instantiation > +					return $alias; 
>
>No, get_class gives the class of an instance. $alias is a string here.
>
>—
>Reply to this email directly or view it on GitHub.￼
>