Espero a ver sido lo bastante claro para que puedan ayudarme, por favor. Os dejo el código:
Código PHP:
Ver original
class Unacosa { public $nombre = null; public $handler = null; public $source = null; private $path; private $initialized; const DS = '/'; const DEFAULT = 'default'; public function __construct() { $this->path = "unacosa/"; $this->initialized = $initialized; } public function buildPaththing($tFile=null) { if($tFile == null) $tFile = $this->tName; $thingpath .= self::DS; } $fullpath = $thingpath . $tFile; $initialized = true; echo $fullpath; } } public function getThing() { if($this->initialized) { $this->buildPaththing('thereis.tpl'); } else { ExceptionError::getException('Thing Error', 'Could not Initialized the Thing, 255); } } }
Dese ya, ¡Gracias!