Hello,
please help, im trying to configure an event OnAplicationInit to calculate the days between two dates. I have already done this in the past.
But now scriptcase send me this error message
Parse error: syntax error, unexpected ‘$this’ (T_VARIABLE)
I really dont understand what this means, the code i used is this
$current_date = date('Y-m-d')
{Dias} = sc_date_dif({doc_mejora.fecha}, 'aaaa-mm-dd', $current_date ,'aaaa-mm-dd')
so, i never declare $this
please help me