bbone/application/core/MY_Controller.php
2023-01-10 10:06:07 +05:30

61 lines
1.5 KiB
PHP

<?php defined('BASEPATH') or exit('No direct script access allowed');
/**
* AMS
*
* @package HMVC
* @author Venba
* @copyright 2022 Venba
* @license https://venbainfotech.com/licenses/MIT MIT License
* @link <URI> (description)
* @version GIT: $Id$
* @since Version 0.0.1
* @filesource
*
*/
class MY_Controller extends MX_Controller
{
//
public $CI;
/**
* An array of variables to be passed through to the
* view, layout,....
*/
protected $global_data = array();
/**
* [__construct description]
*
* @method __construct
*/
public function __construct()
{
// To inherit directly the attributes of the parent class.
parent::__construct();
// This function returns the main CodeIgniter object.
// Normally, to call any of the available CodeIgniter object or pre defined library classes then you need to declare.
//$CI =& get_instance();
// Copyright year calculation for the footer
$begin = 2019;
$end = date("Y");
$date = "$begin - $end";
// Copyright
// $this->global_data['copyright_from_mycontroller'] = $date;
// $this->load->vars($this->global_data);
$this->load->module('layout');
$this->load->module('audit');
}
}
// Backend controller
// require_once(APPPATH.'core/User_Controller.php');
// // Frontend controller
// require_once(APPPATH.'core/Frontend_Controller.php');