Member Login

Freestyle Joomla Forums

Includes: Code

Member Login   Register

Please login or register to post on the forum

Forum Index    Board Index    Last Post   

MARAND Sylvain

MARAND Sylvain

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,

Link showing problem /
Joomla Version 3.7.4
Freestyle Version
Pro/Lite Pro
Harry Shaw

Harry Shaw

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:


Harry Shaw
Freestyle Joomla

Vote For Us!

Please vote for our software or write a review of one of our products on the Joomla! Extensions Directory