DRY approach with different request type |
Assuming you always want to reject AJAX requests this should work.
It responds to any AJAX request with an "Internal Server Error" PHP Code: function check_failed() And you will be much more DRY by putting this in a "base" controller that will be extended by the "Class#" controllers. |
Messages In This Thread |
DRY approach with different request type - by geekita - 10-17-2016, 03:54 PM
RE: DRY approach with different request type - by JayAdra - 10-17-2016, 04:43 PM
RE: DRY approach with different request type - by geekita - 10-18-2016, 03:51 AM
RE: DRY approach with different request type - by JayAdra - 10-18-2016, 06:23 AM
RE: DRY approach with different request type - by dave friend - 10-18-2016, 06:43 AM
RE: DRY approach with different request type - by geekita - 10-18-2016, 06:46 AM
RE: DRY approach with different request type - by dave friend - 10-18-2016, 06:54 AM
RE: DRY approach with different request type - by geekita - 10-18-2016, 07:25 AM
|