Dreamweaver php template - wrong include path
I have a php template under root/template which is working as expected.
it has the following 'require_once' files :
<?php
require_once '../_scripts/functions.php';
require_once '../_scripts/pageMake/menuItems.php';
?>
<!doctype html>
<html lang="he" dir="rtl">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<meta charset="utf-8">
<?php
require_once '../_scripts/pageMake/head.php';
The problem is that when i try to create a new php file from this template it get the wrong paths to these files:
When I create the new file, before savings the paths look like this:(I only show the include files)
require_once 'file:///C|/My%20Doc/Google%20Drive/DnD/Bootstrap_4/_scripts/functions.php';
require_once '../_scripts/pageMake/menuItems.php';
require_once 'file:///C|/My%20Doc/Google%20Drive/DnD/Bootstrap_4/_scripts/pageMake/head.php';
And after saving: (I only show the include files)
require_once '_scripts/functions.php';
require_once '../_scripts/pageMake/menuItems.php';
require_once '_scripts/pageMake/head.php';
It gets some of the paths wrong - in this case "../_scripts/pageMake/menuItems.php" should be "_scripts/pageMake/menuItems.php"
If i change the files order, e.g.
require_once '../_scripts/pageMake/menuItems.php';
require_once '../_scripts/functions.php';
I know get:
require_once '_scripts/menuItems.php';
require_once '../_scripts/pageMake/functions.php';
What is going on here and how to fix this so that all path will be generated correctly?
