Skip to content

Instantly share code, notes, and snippets.

View DeaVenditama's full-sized avatar

Dea Venditama DeaVenditama

View GitHub Profile
<?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);
<?php namespace App\Controllers;
class Data extends BaseController
{
public function __construct()
{
helper('form');
}
public function index()
<?php
$csv = [
'name'=>'csv',
'id' =>'csv'
];
$nama = [
'name' => 'nama',
'id' => 'nama',
'class' => 'form-control',
<?php namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class Data extends Migration
{
public function up()
{
$this->forge->addField([
'id' =>[
<?php namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class KodeWilayah extends Migration
{
public function up()
{
$this->forge->addField([
'id' =>[
<?php namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class MasterData extends Migration
{
public function up()
{
$this->forge->addField([
'id' =>[
<?= $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>
<?php namespace App\Controllers;
class Maps extends BaseController
{
public function index()
{
return view('maps/index');
}
//--------------------------------------------------------------------
<!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->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' ) )