I think the situation 99% familiar to all, but for some reason everyone is silent on how to deal with this?
Let's say project:
/home/user/www/domen.com/
app/
--class.php
--two_class.php
system/
--init.php
index.php
Actually do the include app/class.php in the file system/init.php.
<?php
// Something like this
define('ROOT', __DIR__ . '/app/');
include ROOT . 'class.php';</code-->
<br / >
PHPStorm does not understand the ways how the server sees and everything is taken from the root of the project. But I desired a method in which the full path is /home/user/www/domen.com/<br>
__DIR__ __FILE__ does not understand and takes the root of your.<br>
How to be, do not start the study due to the IDE just a gesture..
And license TRIAL - Cheyanne commented on July 8th 19 at 12:08
: once set up the mapping. Had the server there for the folder of the project indicated Ruth = the full path. wouldn't start. Still doesn't understand the include ROOT . 'class.php'; - Cheyanne commented on July 8th 19 at 12:17