Last active
November 28, 2016 14:05
-
-
Save austgate/4699101 to your computer and use it in GitHub Desktop.
Using SugarCRM's Sugar Application to show error messages and redirects.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SugarApplication::appendErrorMessage('Enter your message string'); | |
$params = array( | |
'module'=> 'Accounts', | |
'action'=>'DetailView', | |
'id' => $bean->id | |
); | |
SugarApplication::redirect('index.php' . http_build_query($params)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an update in 7th line
SugarApplication::redirect('index.php?' . http_build_query($params));
just added '?'