Ajax doesn't work after using _remap |
Hi
I have added _remap() function in controller because I need to pass parameter in index, also index should work without passing parameter inside. Example with passed parameter in url: mywebsite.com/history/12 Example without parameter in url: mywebsite.com/history Both examples are working with _remap() function in controller ! Now issue that I have is that when I want to use ajax and call function in same controller it doesn't work, I get returned whole page content, but when I remove _remap() from controller then this examples mentioned above is not working, but ajax working. How this can be fixed ? Controller PHP Code: <?php View PHP Code: <script> |
Messages In This Thread |
Ajax doesn't work after using _remap - by brianjamestorr - 02-04-2021, 02:19 PM
RE: Ajax doesn't work after using _remap - by InsiteFX - 02-04-2021, 04:02 PM
RE: Ajax doesn't work after using _remap - by brianjamestorr - 02-05-2021, 12:31 AM
RE: Ajax doesn't work after using _remap - by InsiteFX - 02-05-2021, 03:48 AM
|