Hello,
I have a PHP script being called by AJAX request. At this moment everything work perfectly, but my script is in the root directory, bootstraping PW.
request = $.post('/public_html/pw/contactus.php', serializedData);
My question is, it is possible to put this PHP script in my templates directory and call it from there ? (if I hardcode the path I get a 403 HTTP error and doing that can cause problem between dev environment and production);
How I should code my path in the Javascript code ?