Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By saidmsl
#779653
Hi,

i have looked at the class.pmSugar.pmFunctions.php and have some questions :

1. how to register a new class so that functions declared in the class are available in the triggers list?

2. i'm triyng to connect to a different DB inside the function : so far i used :

function connect() {
$Connection = new DBConnection('127.0.0.1','root','','corebos540','mysql');
$ses = new DBSession( $Connection );
return $ses;

}

it works but i want to use a config.inc.php file to set the mysql connection strings

how can i use it because i try using include('config.inc.php");
but the variables declared in the config file are not available in the function

note : i already declared the variables as global

Rgds

If you're looking to save big on your next online […]

If you're looking to save big on your next online […]

If you're looking to save big on your next online […]

Use the latest Freecash referral code "FC2507[…]