Check if view exists in ./application/View/ folder

@param string $view
@return bool
193421
public static function exists($view)
    {
        $path = INPHINIT_PATH . 'application/View/' . strtr($view, '.', '/') . '.php';
        return is_file($path) && \UtilsCaseSensitivePath($path);
    }
737985
public function getViewPath($view)
    {
        if ($view instanceof View) {
            return $view->getPath();
        }

        if (strpos($view, '::') !== false) {
            return $view;
        }

        return $this->getViewNamespace().'.'.$view;
    }
25362
public function attachTrackerView($view)
    {
        if ( ! $this->trackerViews->contains($view->getKey()))
        {
            return $this->trackerViews()->attach($view);
        }
    }
669871
protected function getViewModuleFiles($view)
    {
        $rootPath = resource_path('views/' . str_replace('.', '/', $view));

        return [
            $rootPath . '/index',
            $rootPath . '/show',
            $rootPath . '/create',
            $rootPath . '/edit'
        ];
    }
857280
function hasViewResult( $view = '' )
    {
        if ( $view == '' )
            $view = $this->currentView();
        return isset( $this->ViewResult[$view] );
    }
814578
function hasActionParameter( $parameterName, $view = '' )
    {
        if ( $view == '' )
            $view = self::currentView();
        if ( isset( $this->ViewActionParameters[$view][$parameterName] ) )
            return true;
        $currentAction = $this->currentAction( $view );
        $http = eZHTTPTool::instance();
        if ( isset( $this->Functions[$view]['post_action_parameters'][$currentAction] ) )
        {
            $postParameters = $this->Functions[$view]['post_action_parameters'][$currentAction];
            if ( isset( $postParameters[$parameterName] ) and
                 $http->hasPostVariable( $postParameters[$parameterName] ) )
            {
                return true;
            }
        }
        if ( isset( $this->Functions[$view]['post_value_action_parameters'][$currentAction] ) )
        {
            $postParameters = $this->Functions[$view]['post_value_action_parameters'][$currentAction];
            if ( isset( $postParameters[$parameterName] ) )
            {
                $postVariables = $http->attribute( 'post' );
                $postVariableNameMatch = $postParameters[$parameterName];
                $regMatch = "/^" . $postVariableNameMatch . "_(.+)$/";
                foreach ( $postVariables as $postVariableName => $postVariableValue )
                {
                    if ( preg_match( $regMatch, $postVariableName, $matches ) )
                    {
                        $parameterValue = $matches[1];
                        $this->ViewActionParameters[$view][$parameterName] = $parameterValue;
                        return true;
                    }
                }
            }
        }
        return false;
    }
109680
public function view($view = null)
    {
        if (empty($view)) {
            return $this->getConfig('view') ?: $this->_request()->getParam('action');
        }

        return $this->setConfig('view', $view);
    }
1230995
public function showFolderListAsideViewAction(ContentView $view)
    {
        $subContentCriteria = $this->get('ezdemo.criteria_helper')->generateSubContentCriterion(
            $view->getLocation(),
            $this->container->getParameter('ezdemo.folder.folder_tree.included_content_types'),
            $this->getConfigResolver()->getParameter('languages')
        );

        $subContentQuery = new LocationQuery();
        $subContentQuery->query = $subContentCriteria;
        $subContentQuery->sortClauses = array(
            new SortClause\ContentName(),
        );
        $subContentQuery->performCount = false;

        $searchService = $this->getRepository()->getSearchService();
        $subContent = $searchService->findLocations($subContentQuery);

        $treeChildItems = array();
        foreach ($subContent->searchHits as $hit) {
            $treeChildItems[] = $hit->valueObject;
        }

        $view->addParameters(['treeChildItems' => $treeChildItems]);

        return $view;
    }
99397
protected function verifyViewExists($view)
    {
        // Verify the user passed us a correct view
        if($view && !$this->laravel->view->exists($view))
        {
            $this->laravel->config->get("maintenancemode.view");
            $this->error("The view \"{$view}\" does not exist. If you continue, the view from the configuration file \"{$this->laravel->config->get("maintenancemode.view")}\" will be used until \"{$view}\" is found.");
            return $this->confirm('Do you wish to continue? [y|N]');
        }
        return true;
    }
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;
    }
1232236
public function match(View $view)
    {
        if (!$view instanceof SystemInfoView) {
            return false;
        }

        return $this->toIdentifier($view->getInfo()) === $this->identifier;
    }
1311646
public function view($view = null)
    {
        if (null === $view) {
            return $this->view;
        }

        $this->view = $view;

        return $this;
    }
1028535
public function match(View $view)
    {
        if (!$view instanceof TagValueView) {
            return false;
        }

        $keyword = $this->translationHelper->getTranslatedByMethod(
            $view->getTag(),
            'getKeyword'
        );

        return isset($this->values[$keyword]);
    }
521505
protected function makeView($view)
    {
        if( Auth::check() ) {
            $this->addParameter( 'activeUser', Auth::user() );
        }

        return View::make( $view, $this->parameters );
    }
288388
public function match(View $view)
    {
        if (!$view instanceof TagValueView) {
            return false;
        }

        return isset($this->values[$view->getTag()->parentTagId]);
    }
1319469
private function _view_file_exists()
    {
        $route = Rails::application()->dispatcher()->router()->route();
        /**
         * Build a simple path for the view file, as there's no support for
         * stuff like modules.
         * Note that the extension is PHP, there's no support for different
         * request formats.
         */
        $base_path = Rails::config()->paths->views;
        $view_path = $base_path . '/' . $route->path() . '.php';
        return is_file($view_path);
    }
870952
public function find_file($view, $themes = null)
	{
		if (is_null($themes))
		{
			$themes = $this->get_parent_themes($this->active['name']);
		}

		return parent::find_file($view, $themes);
	}