public function getThemeNames() { $folder = new \GO\Base\Fs\Folder(\GO::config()->root_path . 'views/Extjs3/themes'); $items = $folder->ls(); $themes = array(); foreach ($items as $folder) { if ($folder->isFolder() && $folder->child('Layout.php')) { $themes[] = $folder->name(); } } return $themes; }