I have another code which is similar to my existing code but I am thinking the found code works same or it is something different than my other code.
/ add all above directories to the include path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(ROOT_PATH.DS.CLASSES_DIR),
realpath(ROOT_PATH.DS.PAGES_DIR),
realpath(ROOT_PATH.DS.TEMPLATE_DIR),
get_include_path()
)));
**My code:**
set_include_path(implode(PATH_SEPARATOR,
[ __DIR__.DIRECTORY SEPERATOR.'includes', get_include_path() ] ));