alastairwalker
Member
I am using external scripts in some forms to read and process PHP script files.
In the OnAfterProcess in the submission of a PHP script in the Form I am trying to use: (as an example)
$relationship = $formModel->getElementData('#__nestedsets___relationship');
but I have found that I can only use (for example)
$relationship = $formModel->getElementData('JM32_nestedsets___relationship');
The consequence is a loss of portability of the PHP script i.e. I would prefer to use #__ in place of the hard coded root of 'jm32'.
Am I missing something, or is there a tweak I have overlooked?
By the way, there is no problem if the script is used in the 'textarea' mode of application.
The problem only occurs in the use of an externally read php script.
Alastair
In the OnAfterProcess in the submission of a PHP script in the Form I am trying to use: (as an example)
$relationship = $formModel->getElementData('#__nestedsets___relationship');
but I have found that I can only use (for example)
$relationship = $formModel->getElementData('JM32_nestedsets___relationship');
The consequence is a loss of portability of the PHP script i.e. I would prefer to use #__ in place of the hard coded root of 'jm32'.
Am I missing something, or is there a tweak I have overlooked?
By the way, there is no problem if the script is used in the 'textarea' mode of application.
The problem only occurs in the use of an externally read php script.
Alastair