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
@@ -161,4 +161,19 @@ class Messages extends VileSci_Controller
return $person_id;
}
public function getVorlage()
{
$vorlage_kurzbz = $this->input->get("vorlage_kurzbz");
if (isset($vorlage_kurzbz))
{
$this->load->model("system/Vorlagestudiengang_model", "VorlagestudiengangModel");
$result = $this->VorlagestudiengangModel->loadWhere(array("vorlage_kurzbz" => $vorlage_kurzbz));
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
}
}