Added the ability to choose a template (Vorlage) as email text

This commit is contained in:
bison-paolo
2016-09-28 17:15:19 +02:00
parent b46122ab9e
commit 7db01c8eb5
6 changed files with 195 additions and 91 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
class Vorlage_widget extends Widget
{
public function display($data)
{
$this->load->model("system/Vorlage_model", "VorlageModel");
$this->VorlageModel->addOrder("vorlage_kurzbz");
$result = $this->VorlageModel->load();
if (is_object($result) && $result->error == EXIT_SUCCESS)
{
$data = array("vorlage" => $result->retval);
$this->view("widgets/vorlage", $data);
}
}
}