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