This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Controllers; | |
class Maps extends BaseController | |
{ | |
public function index() | |
{ | |
$model = new \App\Models\DataModel(); | |
$fileName = base_url("maps/prov.geojson"); | |
$file = file_get_contents($fileName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Controllers; | |
class Data extends BaseController | |
{ | |
public function __construct() | |
{ | |
helper('form'); | |
} | |
public function index() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$csv = [ | |
'name'=>'csv', | |
'id' =>'csv' | |
]; | |
$nama = [ | |
'name' => 'nama', | |
'id' => 'nama', | |
'class' => 'form-control', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Database\Migrations; | |
use CodeIgniter\Database\Migration; | |
class Data extends Migration | |
{ | |
public function up() | |
{ | |
$this->forge->addField([ | |
'id' =>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Database\Migrations; | |
use CodeIgniter\Database\Migration; | |
class KodeWilayah extends Migration | |
{ | |
public function up() | |
{ | |
$this->forge->addField([ | |
'id' =>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Database\Migrations; | |
use CodeIgniter\Database\Migration; | |
class MasterData extends Migration | |
{ | |
public function up() | |
{ | |
$this->forge->addField([ | |
'id' =>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= $this->extend('layout') ?> | |
<?= $this->section('head') ?> | |
<script src="<?= base_url('leaflet/leaflet.js') ?>"></script> | |
<link rel="stylesheet" href="<?= base_url('leaflet/leaflet.css') ?>" /> | |
<style> | |
#maps { | |
height: 500px; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Controllers; | |
class Maps extends BaseController | |
{ | |
public function index() | |
{ | |
return view('maps/index'); | |
} | |
//-------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Hello, world!</title> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<!-- Fonts and icons --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= $this->section('script') ?> | |
<script src="<?= base_url('ckeditor5-build-classic/ckeditor.js')?>" type="text/javascript"></script> | |
<style> | |
.ck-editor__editable_inline{ | |
min-height: 200px; | |
} | |
</style> | |
<script> | |
ClassicEditor | |
.create( document.querySelector( '#editor' ) ) |