public function setExt($ext) { if ('.' != substr($ext, 0, 1)) { $ext = '.' . $ext; } $this->config['ext'] = $ext; }