protected function add_folder($part) { if (!$this->is_home) { $this->dir .= '/' . $part . '/'; } else { $this->dir .= '/' . $part; } $this->config_loader->load($this->dir . '00_folder.php'); if ($this->config_loader->error) { return false; } $folder = new folder($this->config_loader->config); $folder->set_array($this->config_loader->config); $this->folders[] = $folder; return true; }