Skip to content

Instantly share code, notes, and snippets.

@pedroresende
Created October 2, 2017 10:48
Show Gist options
  • Save pedroresende/589af89af394f52bfca2c0be7da9a5ac to your computer and use it in GitHub Desktop.
Save pedroresende/589af89af394f52bfca2c0be7da9a5ac to your computer and use it in GitHub Desktop.
public function setUserVariables($I)
{
if ($I->amIAdmin($I)) {
$URL = '/admin_herbals';
$saveButton_id = '#btupdate';
} else {
$URL = '/herbals';
$saveButton_id = '#submit';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment