mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-14 21:42:16 +00:00
28 lines
548 B
PHP
28 lines
548 B
PHP
<?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->outputJson([
|
|
'data' => json_decode($this->pj->getJSON()),
|
|
'meta' => [
|
|
'status' => FHCAPI_Controller::STATUS_SUCCESS
|
|
]
|
|
]);
|
|
}
|
|
}
|