id = $id; $this->template = $template; $this->data = $data; $this->data['id'] = $this->id; } public function render() { if (!$this->template) { return; } echo gdpr('view')->render('admin/modals/header', $this->data); echo gdpr('view')->render($this->template, $this->data); echo gdpr('view')->render('admin/modals/footer', $this->data); } }