system/Views/View.php
public function view($file, array $vars = [])
    {
		if ( is_file($file = $this->getPath($file . '.php')) ) {
            $this->data = $vars;
			extract($vars, EXTR_OVERWRITE|EXTR_REFS);
			include($this->cache($file));
            $this->end();
		} else {
            throw new \Exception("Views: File not found $file");
        }

		return $this;
	}
public function view($file, array $vars = [])
    {
		if ( is_file($file = $this->getPath($file . '.php')) ) {
            $this->data = $vars;
			extract($vars, EXTR_OVERWRITE|EXTR_REFS);
			include($this->cache($file));
            $this->end();
		} else {
            throw new \Exception("Views: File not found $file");
        }

		return $this;
	}
public function view ( $ file , array $ vars = [ ] ) { if ( is_file ( $ file = $ this -> getPath ( $ file . '.php' ) ) ) { $ this -> data = $ vars ; extract ( $ vars , EXTR_OVERWRITE | EXTR_REFS ) ; include ( $ this -> cache ( $ file ) ) ; $ this -> end ( ) ; } else { throw new \ Exception ( "Views: File not found $file" ) ; } return $ this ; }
section in layout is calling section in view if is definded

@param string   $file   view file path name without .php
@param array    $vars   array of the vars "key => value"

@return this
section in layout is calling section in view if is definded