private function getThemeAttributes()
	{
		$theme = Cii::getConfig('theme', 'default');

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

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

		try {
			$model = new Theme();
		} catch(Exception $e) {
			throw new CHttpException(400,  Yii::t(
				'Api.setting', 
				'The requested theme type is not set. Please set a theme before attempting to change theme settings.'
			));
		}

		return $model;
	}
private function getThemeAttributes()
	{
		$theme = Cii::getConfig('theme', 'default');

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

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

		try {
			$model = new Theme();
		} catch(Exception $e) {
			throw new CHttpException(400,  Yii::t(
				'Api.setting', 
				'The requested theme type is not set. Please set a theme before attempting to change theme settings.'
			));
		}

		return $model;
	}
private function getThemeAttributes ( ) { $ theme = Cii :: getConfig ( 'theme' , 'default' ) ; if ( ! file_exists ( Yii :: getPathOfAlias ( 'webroot.themes.' . $ theme ) . DIRECTORY_SEPARATOR . 'Theme.php' ) ) throw new CHttpException ( 400 , Yii :: t ( 'Api.setting' , 'The requested theme type is not set. Please set a theme before attempting to change theme settings.' ) ) ; Yii :: import ( 'webroot.themes.' . $ theme . '.Theme' ) ; try { $ model = new Theme ( ) ; } catch ( Exception $ e ) { throw new CHttpException ( 400 , Yii :: t ( 'Api.setting' , 'The requested theme type is not set. Please set a theme before attempting to change theme settings.' ) ) ; } return $ model ; }
Retrieves the appropriate model for the theme
@param  string $type The data type to load
@return Theme
Retrieves the appropriate model for the theme