Share a variable between default.php page template and a block view.php
Permalink
Hi there,
I have this code written in my page template
When I try to access the "$isOpen" variable from one of my block view.php like this :
It doesn't work at all :(
Any ideas ??
I have this code written in my page template
<?php $isOpen = false; ?>
When I try to access the "$isOpen" variable from one of my block view.php like this :
<?php if ($isOpen) { ?> Do some stuff <?php } ?>
It doesn't work at all :(
Any ideas ??

try using a global or a define
Could you give more precisions please (an example would be really great), I still don't manage to make it work.
Thx for your answers ...
Thx for your answers ...
use include() or require()
What file do I include ?