11 August 2017, 14:23
PHP variable inside code fragment
I've a little issue with PHP variable inside two sections in code fragment.
Inside the fragment I've two php sections : one for the function calls like require_once, variable declaration and initialisation, etc.. and one for the display like echo, etc...
I open and closed the two sections with .
The issue I have is that the values of the variables declared inside the first section are not transmitted to the second section...
Do you know that and do you know the solution ?
Thanks in advance,
15 August 2017, 10:10
Re: PHP variable inside code fragment
We're very sorry for the delay on this reply!
Each fragment is a totally separate execution and cannot have variables passed between them. However there is a way around this listed in the docs for Includes: Code, if you go to the following link you will find it: http://www.freestyle-joomla.com/products/includes/code/user-guide