2020-08-24, 16:07:20
Ok, one step further in the proces.
Of course I have to remove backend.php from the form action, since this action is already in the backend.php template file
and not in a separate backend.php file.
So after changing this line:
echo '<form action="./backend.php" method="post">';
into this:
echo '<form action="" method="post">';
It is now working locally with Laragon. Haven't tested this yet online.
==================================================
Despite that it is working now locally, how does it find the location of the framework folder ?
include 'framework/imanager.php'; this is a relative path,
but the folder framework does not exist relative to the backend.php template file,
it is in the root of GS.
So I guess the ItemManager-3 api takes care of this ?
But how ?
Of course I have to remove backend.php from the form action, since this action is already in the backend.php template file
and not in a separate backend.php file.
So after changing this line:
echo '<form action="./backend.php" method="post">';
into this:
echo '<form action="" method="post">';
It is now working locally with Laragon. Haven't tested this yet online.
==================================================
Despite that it is working now locally, how does it find the location of the framework folder ?
include 'framework/imanager.php'; this is a relative path,
but the folder framework does not exist relative to the backend.php template file,
it is in the root of GS.
So I guess the ItemManager-3 api takes care of this ?
But how ?