简体   繁体   English

PhpStorm不了解“ ..”

[英]PhpStorm doesn't understand '..'

In my code I refer to upper directory. 在我的代码中,我指的是上层目录。 Interpreter have not problem with path "../app/config/config.php" and website works, but PhpStorm regards it as mistake. 口译员的路径"../app/config/config.php"没有问题,网站可以正常工作,但PhpStorm认为这是错误的。 I have a lot of warnings because of it. 因此,我有很多警告。

There is a code form public/index.php in this screen (generated by Phalcon devtools). 此屏幕中有一个代码形式public/index.php (由Phalcon devtools生成)。 You can see 'app' is highlighted (Path [...] not found). 您可以看到“ app”已突出显示(找不到路径)。 I have no idea how to repair this. 我不知道该如何修复。

Check phpstorm's relative path: 检查phpstorm的相对路径:

Ctrl + Space + Space Ctrl +空格+空格

Hold Ctrl and press Space twice... 按住Ctrl键并按两次Space键...

You should remove the redundant '/' before 'app'. 您应在“ app”之前删除多余的“ /”。 I mean the line must become: 我的意思是该行必须变为:

$config = include APP_PATH. 'app/config/config.php $config = include APP_PATH. 'app/config/config.php ; $config = include APP_PATH. 'app/config/config.php ;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM