So I've just begun to learn about the MVC pattern and am adapting some of my current code to an MVC structure. Above is an image of my folder structure for reference.
The outer index.php is inlcuding the view/index.php, which in turn includes both login.php and controller/indexController.php.
The issue I'm having is with the form actions when I submit on my index page.
<form action="" method="post">
So my action=" ", as I want to post to the same page since my view/index.php includes the indexController.php
I'm being sent to localhost/Workspace/index.php instead of localhost/Workspace/lab3/index.php, which is the wrong page completely.
Btw, I am using Wamp. I hope I've explained the issue clearly enough, but if you need any clarifications I'll gladly oblige.
Thank you for the help.