public function actionTheme()
	{
		$theme = Cii::getConfig('theme', 'default');

		if (!file_exists(Yii::getPathOfAlias('base.themes.' . $theme) . DS . 'Theme.php'))
			throw new CHttpException(400, Yii::t('Dashboard.main',  'The requested theme type is not set. Please set a theme before attempting to change theme settings'));

		Yii::import('base.themes.' . $theme . '.Theme');

		try {
			$model = new Theme();
		} catch(Exception $e) {
			throw new CHttpException(400,  Yii::t('Dashboard.main', 'The requested theme type is not set. Please set a theme before attempting to change theme settings'));
		}
		
		$this->render('settings', array(
			'model' => $model
		));
	}
public function actionTheme()
	{
		$theme = Cii::getConfig('theme', 'default');

		if (!file_exists(Yii::getPathOfAlias('base.themes.' . $theme) . DS . 'Theme.php'))
			throw new CHttpException(400, Yii::t('Dashboard.main',  'The requested theme type is not set. Please set a theme before attempting to change theme settings'));

		Yii::import('base.themes.' . $theme . '.Theme');

		try {
			$model = new Theme();
		} catch(Exception $e) {
			throw new CHttpException(400,  Yii::t('Dashboard.main', 'The requested theme type is not set. Please set a theme before attempting to change theme settings'));
		}
		
		$this->render('settings', array(
			'model' => $model
		));
	}
public function actionTheme ( ) { $ theme = Cii :: getConfig ( 'theme' , 'default' ) ; if ( ! file_exists ( Yii :: getPathOfAlias ( 'base.themes.' . $ theme ) . DS . 'Theme.php' ) ) throw new CHttpException ( 400 , Yii :: t ( 'Dashboard.main' , 'The requested theme type is not set. Please set a theme before attempting to change theme settings' ) ) ; Yii :: import ( 'base.themes.' . $ theme . '.Theme' ) ; try { $ model = new Theme ( ) ; } catch ( Exception $ e ) { throw new CHttpException ( 400 , Yii :: t ( 'Dashboard.main' , 'The requested theme type is not set. Please set a theme before attempting to change theme settings' ) ) ; } $ this -> render ( 'settings' , array ( 'model' => $ model ) ) ; }
Provides control for Theme management
@param  string $type The type we want to display
Provides control for Theme management