Here’s a great forums question…
I have a form when clicking on it need to go other.php file-available in crm root folder.
I have given header(‘Location: other.php’); – It is not working.
I think need to provide action like header(‘Location: index.php?action=other’); – But some where need to register this file.
Kindly give your views for redirection issue.
Using the header() method can be challenging in Sugar, as you are dependent on whether or not output from the script has been returned to the user. A better choice, as pointed out by Sugar Community Member item, is to call the SugarApplication::redirect() method as shown below…