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:
<?
require_once "HTML/IT.php";
class Home{
  var $tpl_home= new IntegratedTemplate("../templates");
   function Home(){
     $this->tpl_home->loadTemplatefile("index.tpl.html", true, true);
     $this->tpl_home->setCurrentBlock("GEREN");
     $this->tpl_home->setVariable("GEREN","b");
     $this->tpl_home->parseCurrentBlock("GEREN");
     $this->tpl_home->setCurrentBlock("PRINCIPAL");
     $this->tpl_home->setVariable("DADOS","a");
     $this->tpl_home->parseCurrentBlock("PRINCIPAL");
   }
   function show(){
       $this->tpl_home->show();
   }
}
$alo=new Home();
$alo->show();
?>

DONT WORK!!!
why?
im new in php.
i will thank any help.
sorry my english!!! :)
Mauro!


Reply via email to