Re: [PHP] accessing variable from inside a class

2009-09-04 Thread Lars Nielsen
I cant get it to work. I will use a configuration class instead. function templateParser($templateFile='default_template.htm') { $c = new config(); (file_exists($c->template_dir.$templateFile)) ? $this->output=file_get_contents($c->

Re: [PHP] accessing variable from inside a class

2009-09-04 Thread James Colannino
Lars Nielsen wrote: > Hi, > > How do i access a variable from inside a class? Add the following statement: global $template_dir; James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] accessing variable from inside a class

2009-09-04 Thread Lars Nielsen
Hi, How do i access a variable from inside a class? ex. I want to use $template_dir inside Template. $template_dir = 'templates/'; class templateParser { var $output; function templateParser($templateFile='default_template.htm') { (file_exists($t

Re: [PHP] accessing variable value

2008-07-20 Thread Chris
Sudhakar wrote: > i need help with accessing the value of a variable from a different page. > > i have an index.php file which has 2 files included to display header and > footer and the center portion changes based on the link clicked on the > footer. > > header.php > > echo " Text from header

[PHP] accessing variable value

2008-07-19 Thread Sudhakar
i need help with accessing the value of a variable from a different page. i have an index.php file which has 2 files included to display header and footer and the center portion changes based on the link clicked on the footer. header.php Text from header.php file "; ?> footer.php Web Develop

[PHP] Accessing Variable !!!

2001-09-10 Thread Girish P
Hi, I am trying to use value of the text box for the querying ..The query is defined with in the a javaScript . I am not able to get the Value.. inside the function.. However "document.form.text.value" is getting the value. How do we assign the value of javscript to PHP??? Is there a better