Tell if css file exists for a given View.

@param View $view

@return bool
771362
public function cssFileExists(View $view)
    {
        $file = $this->getViewCssFileFromHash($view->getCssHash());

        return file_exists($file);
    }
316849
public function composeShow(View $view)
    {
        $this->composeWithTitle($view);
        $this->composeWithLayout($view);
        $this->composeWithAllRouteNames($view);
        $this->composeWithPartialsLocation($view);
        $this->composeWithResourceLocation($view);
    }
41582
protected function view( $view ) {
		if ( preg_match( '/\.\w+$/', $view, $matches ) && in_array( $matches[0], $this->extensions() ) ) {
			return str_replace( '.', '/', preg_replace( '/' . $matches[0] . '$/', '', $view ) ) . $matches[0];
		}

		return $this->extension( str_replace( '.', '/', $view ) );
	}
485207
public function createView(View $view)
    {
        $this->_execSql($this->_platform->getCreateViewSQL($view->getQuotedName($this->_platform), $view->getSql()));
    }
98468
protected function resolveFromCustomFilepath( $view ) {
		$directory = $this->getDirectory();

		if ( $directory === '' ) {
			return '';
		}

		// Normalize to ensure there are no doubled separators.
		$file = MixedType::normalizePath( $directory . DIRECTORY_SEPARATOR . $view );

		if ( ! file_exists( $file ) ) {
			// Try adding a .php extension.
			$file .= '.php';
		};

		return file_exists( $file ) ? $file : '';
	}
288065
public function exists(string $path, string &$filename = null, ViewPath &$parsed = null): bool
    {
        if (empty($this->parser)) {
            throw new LoaderException("Unable to locate view source, no extension has been associated.");
        }

        $parsed = $this->parser->parse($path);
        if (empty($parsed)) {
            return false;
        }

        if (!isset($this->namespaces[$parsed->getNamespace()])) {
            return false;
        }

        foreach ((array)$this->namespaces[$parsed->getNamespace()] as $directory) {
            $directory = $this->files->normalizePath($directory, true);
            if ($this->files->exists(sprintf("%s%s", $directory, $parsed->getBasename()))) {
                $filename = sprintf("%s%s", $directory, $parsed->getBasename());

                return true;
            }
        }

        return false;
    }
1023277
protected function hasLocalizedVersion()
    {
        if ((bool)$this->getConfig("use_localized_views") && Strata::i18n()->hasActiveLocales()) {
            $localizedFilename =  $this->generateLocalizedViewPath();
            return file_exists($localizedFilename . $this->getConfig('file_extention'));
        }

        return false;
    }
915890
public function getView($view)
    {
        if (Template::exists('Form/' . $view)) {
            return Template::getAdminTemplate('Form/' . $view);
        }

        return new View($view, B8_PATH . 'Form/View/');
    }
165290
public function compose(View $view)
    {
        $corporation_info = CorporationInfo::find($this->request->corporation_id);

        if (! is_null($corporation_info))
            $view->with('corporation_name', $corporation_info->name);
    }
1350406
public function findView($view)
    {
        $file = $this->basePath("app/View/$view.php");
        if($this->findFile($file)) {
            return $file;
        }
        else {
            throw new Exception($file." View file is missing.");
            exit;
        }
    }
833881
protected function findViewFile($view, $context = null)
    {
        $path = parent::findViewFile($view, $context);

        if ($this->theme !== null) {
            $path = $this->theme->applyTo($path);
        }

        if (!is_file($path)) {
            //find default view file
            return $this->findDefaultViewFile($view, $context);
        }

        return FileHelper::localize($path);
    }
1180003
final public function setView(View $view) {
        $this->view = $view;
        $this->publicAssetsPath = ROOT . 'public' . DIRECTORY_SEPARATOR . '.assets' . DIRECTORY_SEPARATOR;
        return $this;
    }
835267
public function find($view)
    {
        // Check to see if the page exists in the database
        $vpage = Vpage::make($view);
        if (! empty($vpage)) {
            return $view . Vpage::EXTENSION_SEPARATOR . $vpage->pagetype;
        }

        throw new InvalidArgumentException("View [$view] not found in vpage table.");
    }
618492
public function checkViewExists($view)
    {
        if (!View::exists($view)) {
            if (Lang::has('resource-controller.viewnotfound')) {
                $message = trans('resource-controller.viewnotfound', ['view' => '$view']);
            } else {
                $message = 'Requested page couldn\'t be loaded because the view file is missing: '.$view;
            }

            throw new ResourceControllerException($message);
        }
    }
1262466
public function composeIndex(View $view)
    {
        $this->composeWithTitle($view);
        $this->composeWithLayout($view);
        $this->composeWithAllRouteNames($view);
        $this->composeWithRequiredFields($view);
        $this->composeWithValidationRules($view);
        $this->composeWithPartialsLocation($view);
        $this->composeWithResourceLocation($view);
    }
986546
public static function exists($view, $return_path = false)
	{
		if (starts_with($view, 'name: ') and array_key_exists($name = substr($view, 6), static::$names))
		{
			$view = static::$names[$name];
		}
		
		list($bundle, $view) = Bundle::parse($view);

		$view = str_replace('.', '/', $view);

		// We delegate the determination of view paths to the view loader event
		// so that the developer is free to override and manage the loading
		// of views in any way they see fit for their application.
		$path = Event::until(static::loader, array($bundle, $view));

		if ( ! is_null($path))
		{
			return $return_path ? $path : true;
		}

		return false;
	}
162999
protected function getViewFile($view,$code)
	{
		$viewPaths=array(
			Yii::app()->getTheme()===null ? null :  Yii::app()->getTheme()->getSystemViewPath(),
			Yii::app() instanceof CWebApplication ? Yii::app()->getSystemViewPath() : null,
			YII_PATH.DIRECTORY_SEPARATOR.'views',
		);

		foreach($viewPaths as $i=>$viewPath)
		{
			if($viewPath!==null)
			{
				 $viewFile=$this->getViewFileInternal($viewPath,$view,$code,$i===2?'en_us':null);
				 if(is_file($viewFile))
				 	 return $viewFile;
			}
		}
	}