framework/web/renderers/CViewRenderer.php
protected function getViewFile($file)
	{
		if($this->useRuntimePath)
		{
			$crc=sprintf('%x', crc32(get_class($this).Yii::getVersion().dirname($file)));
			$viewFile=Yii::app()->getRuntimePath().DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.$crc.DIRECTORY_SEPARATOR.basename($file);
			if(!is_file($viewFile))
				@mkdir(dirname($viewFile),$this->filePermission,true);
			return $viewFile;
		}
		else
			return $file.'c';
	}
protected function getViewFile($file)
	{
		if($this->useRuntimePath)
		{
			$crc=sprintf('%x', crc32(get_class($this).Yii::getVersion().dirname($file)));
			$viewFile=Yii::app()->getRuntimePath().DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.$crc.DIRECTORY_SEPARATOR.basename($file);
			if(!is_file($viewFile))
				@mkdir(dirname($viewFile),$this->filePermission,true);
			return $viewFile;
		}
		else
			return $file.'c';
	}
protected function getViewFile ( $ file ) { if ( $ this -> useRuntimePath ) { $ crc = sprintf ( '%x' , crc32 ( get_class ( $ this ) . Yii :: getVersion ( ) . dirname ( $ file ) ) ) ; $ viewFile = Yii :: app ( ) -> getRuntimePath ( ) . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . $ crc . DIRECTORY_SEPARATOR . basename ( $ file ) ; if ( ! is_file ( $ viewFile ) ) @ mkdir ( dirname ( $ viewFile ) , $ this -> filePermission , true ) ; return $ viewFile ; } else return $ file . 'c' ; }
Generates the resulting view file path.
@param string $file source view file path
@return string resulting view file path
Generates the resulting view file path .