I have a problem regarding the filenames management in my PHP project.If I have a large number of PHP files in my project and I rename a PHP file then this will result in changing the name of file everywhere where I used the old name for that file.I have adapted a solution to this approach but don't know if it is effecient enough (want to know if there is another approach or solution available?).
The approach is as follows:
[*]create a php file which has define statements like this:
\[code\]define("FILENAME_ADD", "addfeedback.php");\[/code\]
\[code\]define("FILENAME_EDIT", "editfeedback.php");\[/code\]
\[code\]define("FILENAME_DELETE", "deletefeedback.php");\[/code\]
[*]include this php file in every other file where you want to access the filenames (generally in every file that you create).Is this approach effecient enough ?
The project that I am working on is not fully developed in oops but It uses some of the classes like paginator and session which use oops concepts very well.Please help me.Thanks
The approach is as follows:
[*]create a php file which has define statements like this:
\[code\]define("FILENAME_ADD", "addfeedback.php");\[/code\]
\[code\]define("FILENAME_EDIT", "editfeedback.php");\[/code\]
\[code\]define("FILENAME_DELETE", "deletefeedback.php");\[/code\]
[*]include this php file in every other file where you want to access the filenames (generally in every file that you create).Is this approach effecient enough ?
The project that I am working on is not fully developed in oops but It uses some of the classes like paginator and session which use oops concepts very well.Please help me.Thanks