public function getThemesFromDir()
	{
		$themeList = array();
		$themePath = Yii::getPathOfAlias('webroot.themes');
		$themes    = scandir($themePath);
		foreach($themes as $theme) {
			$themeName = $this->urlTitle($theme);
			$themeFile = $themePath.'/'.$theme.'/'.$themeName.'.yaml';
			if(file_exists($themeFile)) {
				if(!in_array($themeName, $this->getIgnoreTheme())) {
					$themeList[] = $theme;
				}
			}
		}

		if(count($themeList) > 0)
			return $themeList;
		else
			return false;
	}
public function getThemesFromDir()
	{
		$themeList = array();
		$themePath = Yii::getPathOfAlias('webroot.themes');
		$themes    = scandir($themePath);
		foreach($themes as $theme) {
			$themeName = $this->urlTitle($theme);
			$themeFile = $themePath.'/'.$theme.'/'.$themeName.'.yaml';
			if(file_exists($themeFile)) {
				if(!in_array($themeName, $this->getIgnoreTheme())) {
					$themeList[] = $theme;
				}
			}
		}

		if(count($themeList) > 0)
			return $themeList;
		else
			return false;
	}
public function getThemesFromDir ( ) { $ themeList = array ( ) ; $ themePath = Yii :: getPathOfAlias ( 'webroot.themes' ) ; $ themes = scandir ( $ themePath ) ; foreach ( $ themes as $ theme ) { $ themeName = $ this -> urlTitle ( $ theme ) ; $ themeFile = $ themePath . '/' . $ theme . '/' . $ themeName . '.yaml' ; if ( file_exists ( $ themeFile ) ) { if ( ! in_array ( $ themeName , $ this -> getIgnoreTheme ( ) ) ) { $ themeList [ ] = $ theme ; } } } if ( count ( $ themeList ) > 0 ) return $ themeList ; else return false ; }
Mendapatkan daftar theme dari folder themes.

@return array daftar theme yang ada atau false jika tidak terdapat theme.
Mendapatkan daftar theme dari folder themes .