This commit is contained in:
Paminger
2016-04-07 15:17:26 +02:00
parent c124348484
commit bcfae6b009
14 changed files with 57 additions and 39 deletions
+4 -2
View File
@@ -3,6 +3,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
class FHC_Model extends CI_Model
{
//protected errormsg;
function __construct()
{
parent::__construct();
@@ -31,12 +32,13 @@ class FHC_Model extends CI_Model
*
* @return array
*/
protected function _general_error()
protected function _general_error($retval = '', $message = FHC_ERR_GENERAL)
{
return array(
'err' => 1,
'code' => FHC_ERR_GENERAL,
'msg' => lang('fhc_'.FHC_ERR_GENERAL)
'msg' => lang('fhc_'.$message),
'retval' => $retval
);
}
}