我有一些来自yii的脚本,在配置之后,它会抛出这样的错误:
Alias "application.components.HFooter" is invalid. Make sure it points to an existing PHP file and the file is readable.
/var/www/rumah/framework/YiiBase.php(322)
310 if($isClass && (class_exists($className,false) || interface_exists($className,false)))
311 return self::$_imports[$alias]=$className;
312
313 if(($path=self::getPathOfAlias($alias))!==false)
314 {
315 if($isClass)
316 {
317 if($forceInclude)
318 {
319 if(is_file($path.'.php'))
320 require($path.'.php');
321 else
322 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)));
323 self::$_imports[$alias]=$className;
324 }
325 else
326 self::$classMap[$className]=$path.'.php';
327 return $className;
328 }
329 else // a directory
330 {
331 if(self::$_includePaths===null)
332 {
333 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
334 if(($pos=array_search('.',self::$_includePaths,true))!==false)
它在Windows下运行良好,但在Linux下它不起作用。我怀疑原因与case sensitive
有关。怎么解决?感谢。
答案 0 :(得分:0)
检入\application\components
目录
并输入正确的fileaneme HFooter.php
application.components.HFooter
答案 1 :(得分:0)