Skip to content

Instantly share code, notes, and snippets.



Last active Nov 28, 2016
What would you like to do?
Using SugarCRM's Sugar Application to show error messages and redirects.
SugarApplication::appendErrorMessage('Enter your message string');
$params = array(
'module'=> 'Accounts',
'id' => $bean->id
SugarApplication::redirect('index.php' . http_build_query($params));

This comment has been minimized.

Copy link

@safwanebrahim-uc safwanebrahim-uc commented Feb 12, 2014

There is an update in 7th line
SugarApplication::redirect('index.php?' . http_build_query($params));

just added '?'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.