class Daz_Config {
private static $instance;
private function __construct(){
$this->load();
}
private function load() {
...
}
public function get($key) {
...
}
public static getInstance(){
if (!self::$instance) self::$instance = new Daz_Config();
return self::$instance;
}
}
Then you can do:
Daz_Config::getInstance()->get('myvalue');

