I have a non-Symfony project that I'd like to include in a Symfony project.
The project has lots of relative paths in forms like
<form action="actions/check.php">
<input type="text" name="pages">
<input type="submit" value="Check">
</form>
or including files like include '../include/class.php';
Completely changing it to work in Symfony would be very troublesome, so is there any way to make these relative paths work in a Symfony project?
I've included the project in a folder inside a bundle, but obviously submitting a form sends me to a relative page that doesn't exist on the website because a route wasn't defined for that page. For instance, for the above form, I am sent at mywebsite/actions/check.php.
Creating routes for those wouldn't do much, as I need to create Symfony controllers for them, and that means I'll need to redo the project, and copy/paste code from the original files in those controllers.
Is it possible to use non-Symfony code with relative paths in a Symfony project? I'm thinking the relative include paths would work, but what about the form actions?
/actions/check.php?