[PHP] Re: accessing variable from inside a class

2009-09-04 Thread Shawn McKenzie
Lars Nielsen wrote: 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') {

[PHP] Re: Accessing Variable !!!

2001-09-11 Thread Richard Lynch
PHP lives on the server. JavaScript lives on the browser. Consider the sequencing of events: 1: Browser sends GET request 2: Apache begins processing request, decides to invoke PHP 3: PHP begins processing, starts sending out HTML (or other data) 4: Apache passes through PHP's HTML/data 5: