05.03.2018, 15:50
Should I switch from including files with '/' to '\' ?
I'm asking because I already did it, and now I see that I have a lot of 'main.inc' files:
I could change every file's name, but I got used to create a main file for every system and now I think that in future updates I will forget about this problem and main won't be included (since using '\' will not allow multiple files included with the same name) and then wonder why things don't work.
Give me reasons to get me into this style, despite the problems mentioned above.
I'm asking because I already did it, and now I see that I have a lot of 'main.inc' files:
PHP код:
#include "core\admin\main"
#include "core\building\main"
#include "core\item\main"
#include "core\player\main"
#include "core\squad\main"
#include "core\vehicle\main"
#include "core\jobs\main"
#include "core\faction\main"
//etc..
Give me reasons to get me into this style, despite the problems mentioned above.