I have a front controller class. In that class I have function to parse a url:
public function parseURL()
{
if(isset($_GET['url']))
{
return $url = explode('/',filter_var(rtrim($_GET['url'],'/'),FILTER_SANITIZE_URL));
}
}
This is based upon a RewriteRule (What I imported into IIS anyway):
Options -Multiviews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Does this mean all of my forms now need to use GET?
<form action="/controller/action" method="GET">
Doesn't everything go through the front controller, even my CRUD?
/controller/action/id
, for example.
If it matters I am using IIS. I do not have any hidden inputs for put, delete, etc. I am not currently using AJAX.