54 lines
1.2 KiB
PHP
54 lines
1.2 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 Dashboard extends Admin_Controller
|
|
{
|
|
/**
|
|
* [__construct description]
|
|
*
|
|
* @method __construct
|
|
*/
|
|
public function __construct()
|
|
{
|
|
// To inherit directly the attributes of the parent class.
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* [index description]
|
|
*
|
|
* @method index
|
|
*
|
|
* @return [type] [description]
|
|
*/
|
|
public function index()
|
|
{
|
|
$users = array('name' => 'user 1','age' => 35);
|
|
$address = array('address' => 'street','pincode' => 741852);
|
|
|
|
// echo $this->security->get_csrf_token_name(); echo $this->security->get_csrf_hash();die();
|
|
//pass data to views
|
|
$this->layout->set('users', $users);
|
|
$this->layout->set('address', $address);
|
|
|
|
$this->layout->buffer('main_content', 'dashboard/dashboard');
|
|
$this->layout->render('default_layout');
|
|
|
|
}
|
|
|
|
|
|
}
|