Hey everyone,
I'm new here. I have a unique problem:
1) I have a form that is part of a controller called Players.php (this controller extends just controller, I don't want it within the actual backend CMS)
2) The form posts to a controller called LoginAction() in Players controller.
3) The Players controller then makes a remote curl call to a java servlet which returns XML to me, either containing success or and error.
Option a: I test for the error and I want to either redirect back to the form and force a custom error within the form framework,
Option b: Redirect back to say domain.com/players/loginfailed and then test for that url string and display an error in the Players.ss view.
With good old fashioned PHP I would do something like this domain.com/players/?error=1 and then if(isset($_GET['error']) { $this->showError('Login Failed'); } or something along those lines.
Can anyone please let me know how to do this. This issue is I'm not really interacting directly with the cms to test the login, so I'm finding it very hard to display custom errors.
Thanks for your time