Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Problem instantiating


Message #1 by "Ron Hatt" <hattfam@h...> on Mon, 6 Aug 2001 21:41:27 -0700
nevermind ...
simple error, just a minor oversight.
sorry for the stupidity.  I hope I didn't waste anyone's time.


Ron Hatt
ron@h...
www.hattworks.com



-----Original Message-----
From: Ron Hatt [mailto:hattfam@h...]
Sent: Monday, August 06, 2001 9:41 PM
To: professional php
Subject: [pro_php] Problem instantiating


This is very strange.

I am developing a system using FastTemplate.  I have run this script before
and no problems.  Now, I cannot include this line (anywhere inside my
class).

define(TEMPLATE_PATH, 'yadda/yadda/yadda/templates/'); // outside of class


// a class function
function displayAdd(){
  $ft = new FastTemplate(TEMPLATE_PATH);  // this line produces parse error!
CRAZY!!

  $ft->define( array( main => "main.tpl", ... ));

...
}


PHP 4.02 : Apache : FreeBSD

Is there anything I might not be considering?

(I think I may have to include the entire class)


Ron Hatt
ron@h...
www.hattworks.com



  Return to Index