This source using CodeIgniter v.3.1.11 + Modular (HMVC)
Admin Template using AdminLTE v3.0.2
- Auth
- Frontend
- Dashboard
- HMVC (Hiraki Module Views Controller)
- RBAC (Role Base Access Controller)
- Dynamic Menu
- Ajax Validation
- CRUD
User Guide https://codeigniter.com/docs
Language File Translations https://github.com/bcit-ci/codeigniter3-translations
Community Forums http://forum.codeigniter.com/
Community Wiki https://github.com/bcit-ci/CodeIgniter/wiki
Community Slack Channel https://codeigniterchat.slack.com
Please see the license agreement https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/license.rst.
Author: Colorlib
Website: AdminLTE.io http://adminlte.io
License: Open source - MIT http://opensource.org/licenses/MIT
Make New Folder
.
├── application # Default Folder
├── modules # HMVC Folder
│ └── own
│ │── controllers
│ └── Own.php
│ │── models
│ └── Own_model.php
│ │── views
│ │── Core (opsional)
│ └── index.php
Own.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Own extends MX_Controller {
public function index() {
//Something Code
$data = [
'title' => 'BLANK PAGE'
]
//Custom JS Uncomment If You Want
// $this->load->view('core/js');
// Views
$this->load->view('index', $data);
}
// ETC
}
Own_models.php
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Own_model extends CI_Model
{
function __construct()
{
//somecode
}
public function somecode()
{
//somecode
}
}
index.php
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<!-- SYMLINK WITH CONTROLLER -->
<h1 class="m-0 text-dark"><?= $title ?></h1>
</div>
</div>
</div>
</div>
<section class="content">
<div class="container-fluid">
<div class="row">
<!-- CONTENT -->
</div>
</section>