Answer the question
In order to leave comments, you need to log in
PHPStorm how to fix "path not found" and "Include expression is not resolved"?
I think the situation is 99% familiar to everyone, but for some reason everyone is silent how to cope with this?
Let's say a project:
/home/user/www/domen.com/
app/
--class.php
--two_class.php
system/
--init.php
index.php
<?php
// Что-то вроде этого
define('ROOT', __DIR__ . '/app/');
include ROOT . 'class.php';
Answer the question
In order to leave comments, you need to log in
Can just mute the error with a construct /** @noinspection PhpIncludeInspection */
in PhpStorm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question