Support » Themes and Templates » Cannot Call a Variable defned in the Header

  • Resolved goxu

    (@goxu)


    Hi,

    I put this in the header.
    <?php $test = ‘test’; ?>

    And I put this in the sidebar,
    <?php echo $test; ?>

    But nothing happens. Why? Do I need to define a variable in every file?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot Call a Variable defned in the Header’ is closed to new replies.