I'm running Cruddiy as an app in a subfolder using a custom NGINX config. My path is localhost:8080/cms/ for example.
Cruddiy creates subfolders like app etc after initial setup. Then on http://localhost:8080/cms/app/jobs-create.php for example the form action determined by PHP_SELF is just app/jobs-create.php.
To make it work for my routing situation I ran a find/replace to swap all instances of PHP_SELF with REQUEST_URI.
REQUEST_URI points to the proper form action cms/app/jobs-create.php. Any reason why we wouldn't want to use REQUEST_URI instead?
I'm running Cruddiy as an app in a subfolder using a custom NGINX config. My path is
localhost:8080/cms/
for example.Cruddiy creates subfolders like
app
etc after initial setup. Then onhttp://localhost:8080/cms/app/jobs-create.php
for example the form action determined by PHP_SELF is justapp/jobs-create.php
.To make it work for my routing situation I ran a find/replace to swap all instances of
PHP_SELF
withREQUEST_URI
.REQUEST_URI
points to the proper form actioncms/app/jobs-create.php
. Any reason why we wouldn't want to useREQUEST_URI
instead?