Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Accessing PHP variables after header sent out (http://forum.bytesforall.com/showthread.php?t=3693)

twola Oct 2, 2009 11:14 AM

Accessing PHP variables after header sent out
 
I am designing a custom site using the Atahualpa headers on a PHP page and cannot seem to access my variables in side bar.

For example my page is set this way:

BEGIN PHP PAGE

$a=1;

PHP Code:

include (TEMPLATEPATH '/functions/bfa_get_options.php');
get_header(); 

get_footer();

END PHP PAGE


How do I access $a in the side bar code ?

Thanks

twola Oct 2, 2009 11:24 AM

When I do:

global $a; in the side bar, I can access it.

Is that the best way?


All times are GMT -6. The time now is 04:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.