Re: [PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Wico de Leeuw
Ofcourse there can only be one home function: require_once "HTML/IT.php"; class Home { var $tpl_home = NULL; function Home(){ $this->tpl_home = new IntegratedTemplate("../templates"); $this->tpl_hom

Re: [PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Wico de Leeuw
Hiya Try it like this: require_once "HTML/IT.php"; class Home { var $tpl_home = NULL; function Home () { $this->tpl_home = new IntegratedTemplate("../templates"); } function Home(){

[PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Mauro Romano Trajber
Hi all. I got a problem. When i include a external file using require_once('my_file.php'); in a class file i cant use my_file“s vars and functions. Example: tpl_home->loadTemplatefile("index.tpl.html", true, true); $this->tpl_home->setCurrentBlock("GEREN"); $this->tpl_home->setVari