bbone/application/controllers/Mvc.php
2022-12-16 00:23:18 +05:30

61 lines
1.3 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 MVC extends CI_Controller
{
//
public $CI;
/**
* An array of variables to be passed through to the
* view, layout, ....
*/
protected $data = array();
/**
* [__construct description]
*
* @method __construct
*/
public function __construct()
{
// To inherit directly the attributes of the parent class.
parent::__construct();
// CI profiler
$this->output->enable_profiler(true);
// 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();
//Example data
// Site name
$this->data['sitename'] = 'CodeIgniter-HMVC';
//Example data
// Browser tab
$this->data['site_title'] = ucfirst('Admin Dashboard');
}
public function welcome($value='')
{
echo 'Normal MVC Controller Funciton welcome';
}
}