port phrases mixin and Endpoint from branch feature-27351/Digitalisierung_Formulare_Neu

This commit is contained in:
Harald Bamberger
2023-09-26 11:12:15 +02:00
parent 9bfcbf3bf1
commit 5febccba8a
2 changed files with 107 additions and 0 deletions
@@ -0,0 +1,22 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
*
*/
class Phrasen extends FHC_Controller
{
//------------------------------------------------------------------------------------------------------------------
// Public methods
/**
* @param string $module
*/
public function loadModule($module)
{
$this->load->library('PhrasesLib', [$module], 'pj');
$this->outputJsonSuccess(json_decode($this->pj->getJSON()));
}
}