Skip to content
Advertisement

GET method in php mvc framework

I am writing a PHP MVC framework from scratch by myself, I use this .htaccess rules to redirect all requests to my bootstrap:

JavaScript

Now the problem is I can’t use GET method anymore on forms, when I want to submit a search form using GET method the get parameter won’t send, but it will work with post but it’s not right for a search form.

Advertisement

Answer

This is the .htaccess I am using for my own MVC , may be you can try this

eg usage :localhost/your_webroot/controller/action/?get_parameters=anything

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement