Is a codeigniter 3 framework that has been modified and added new features such as dotenv, sweet alert 2 & bootstrap 4, etc.
Use the composer to install cisetup.
composer create-project kubi/cisetup
set your dotenv file in .env
APP_URL=http://localhost/Kubi_codes/cisetup/
APP_TIMEZONE=Asia/Jakarta
DB_HOST=localhost
DB_USERNAME=root
DB_PASSWORD=
DB_DATABASE=
DB_DRIVER=mysqli
<?php echos($foobar); ?>
<img src="<?= asset_url() . 'img/foobar.png' ?>">
APP_TIMEZONE=Asia/Jakarta
getenv('APP_TIMEZONE');
add this code above the html <head>
<?php table_url(); ?>
after that create a table using the html <table>
tag and add the id to the table tag
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>61</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
<tbody>
</table>
at the end add a script to call the data tables
$(document).ready(function() {
$('#dataTable').DataTable();
});
notif('type','title', 'message','url');
- type = ('success','warning','info','danger')
- url = base_url()+url
example
notif('success','Login Success', 'Welcome to app','home/user');
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.