protected function _find_view($view)
    {
        //edit view string : example view1.view2....
        $view = str_replace('.', '/', $view);
        // Default location
        $full_path = APPPATH . 'views/' . $view . $this->blade_ext;
        // Modular Separation / Modular Extensions has been detected
        if (method_exists($this->router, 'fetch_module')) {
            $module = $this->router->fetch_module();
            list($path, $_view) = Modules::find($view . $this->blade_ext, $module, 'views/');
            if ($path) {
                $full_path = $path . $_view;
            }
        }
        // File not found
        if (!is_file($full_path)) {
            show_error('[Blade] Unable to find view: ' . $view);
        }

        return $full_path;
    }
protected function _find_view($view)
    {
        //edit view string : example view1.view2....
        $view = str_replace('.', '/', $view);
        // Default location
        $full_path = APPPATH . 'views/' . $view . $this->blade_ext;
        // Modular Separation / Modular Extensions has been detected
        if (method_exists($this->router, 'fetch_module')) {
            $module = $this->router->fetch_module();
            list($path, $_view) = Modules::find($view . $this->blade_ext, $module, 'views/');
            if ($path) {
                $full_path = $path . $_view;
            }
        }
        // File not found
        if (!is_file($full_path)) {
            show_error('[Blade] Unable to find view: ' . $view);
        }

        return $full_path;
    }
protected function _find_view ( $ view ) { //edit view string : example view1.view2.... $ view = str_replace ( '.' , '/' , $ view ) ; // Default location $ full_path = APPPATH . 'views/' . $ view . $ this -> blade_ext ; // Modular Separation / Modular Extensions has been detected if ( method_exists ( $ this -> router , 'fetch_module' ) ) { $ module = $ this -> router -> fetch_module ( ) ; list ( $ path , $ _view ) = Modules :: find ( $ view . $ this -> blade_ext , $ module , 'views/' ) ; if ( $ path ) { $ full_path = $ path . $ _view ; } } // File not found if ( ! is_file ( $ full_path ) ) { show_error ( '[Blade] Unable to find view: ' . $ view ) ; } return $ full_path ; }
Find the full path to a view file. Shows an error if file not found.

@param string $view

@return string
Find the full path to a view file . Shows an error if file not found .