I am trying to declare a global variable in my category.php
The code im using is
<?php global $myVar = 16; ?>
I tried to set it without the ‘global’ and it appears to work, but with the ‘global’ I just get a white screen with absolutely nothing….Am I doing something wrong?
- The topic ‘Problem in category’ is closed to new replies.