hello,
using php4
i'm having a problem gathering all my classes together.i have three classes(ErrorHandler,i18n and templateEngine),placed in separate files.
should i create one class and inherit from it or what?
another thing,the following example is not working.any ideas why not?
<?php
class A
{
var $name = "name";
function getname()
{
return $this->name;
}
}
class B
{
function bar()
{
$name = A::getname();
echo $name;
}
}
?>