public function __construct($path = null) { if (!$path) { $path = WWW_ROOT . 'theme' . DS; } if (substr($path, -1) !== DS) { $path .= DS; } $this->_path = $path; }