Hello
I am trying to merge constants that have tbs var fields defined inside.
Something like this:
define('GENERAL_ERROR','<strong>Error</strong>: [var.email] is not a valid email address');
|
Then, I merge constants with your MergeField and user function method:
$TBS->MergeField('cst','f_found_cst',true);
function f_found_cst($str) {
return constant($str);
}
|
The problem is that all "[" characters are converted to [ and the variables inside constants are not merged.
I have checked the value of each constant in function f_found_cst and the "[" are not changed there. I have also checked the values with onformat, and everything seems to be alright there. So, do you know what is happening and, what is more important, what should I do to solve this problem?
Thanks
Jaime