public function renderTemplate($name)
    {
        $data = array_merge($this->view_data, $this->view);
        $template = $this->getRealPath('template' . DSC . $name);
        $this->loadView($template, $data);
    }
public function renderTemplate($name)
    {
        $data = array_merge($this->view_data, $this->view);
        $template = $this->getRealPath('template' . DSC . $name);
        $this->loadView($template, $data);
    }
public function renderTemplate ( $ name ) { $ data = array_merge ( $ this -> view_data , $ this -> view ) ; $ template = $ this -> getRealPath ( 'template' . DSC . $ name ) ; $ this -> loadView ( $ template , $ data ) ; }
Render given template with all added view.

@param string $name
Render given template with all added view .