public function render($path, $data = [])
    {
        $this->data = array_merge($this->data, $data);
        $this->setPath($path);
        $contents = $this->renderContents();

        return $contents;
    }
public function render($path, $data = [])
    {
        $this->data = array_merge($this->data, $data);
        $this->setPath($path);
        $contents = $this->renderContents();

        return $contents;
    }
public function render ( $ path , $ data = [ ] ) { $ this -> data = array_merge ( $ this -> data , $ data ) ; $ this -> setPath ( $ path ) ; $ contents = $ this -> renderContents ( ) ; return $ contents ; }
render Renders the view using the given data

@param $path
@param array $data
@return mixed
render Renders the view using the given data