BaseControllerConcept into config.php

This commit is contained in:
Paminger
2016-03-15 08:14:05 +01:00
parent d28f79e855
commit 0c3c47f848
11 changed files with 50 additions and 327 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class FHC_Model extends CI_Model
{
function __construct()
{
parent::__construct();
}
}
class DB_Model extends FHC_Model
{
function __construct($uid=null)
{
parent::__construct();
$this->load->database();
// UID must be set in Production Mode
if (ENVIRONMENT=='production' && is_null($uid))
log_message('error', 'UID must be set in Production Mode.');
elseif (is_null($uid))
log_message('info', 'UID is not set.');
// Loading Tools for Access Control (Benutzerberechtigungen)
$this->load->library('FHC_DB_ACL',array('uid' => $uid));
}
}