Giter Site home page Giter Site logo

ci3-starter's Introduction

CodeIgniter 3 Starter

Aplikasi ini merupakan aplikasi CodeIgniter versi 3.1.9 dengan beberapa modifikasi diantaranya:

  • Penggunaan file .env untuk menyimpan variabel environment yang terpisah dari source code.
  • Folder public yang terpisah dari aplikasi utama, dan folder publik dapat dipindah-pindah dengan menyesuaikan konstanta BACKPATH.
  • config default sudah autoload library database, dan helper url.
  • Bisa menggunakan struktur layouting sederhana ( $this->section(), $this->endSection(), $this->extend(), $this->renderSection() ) seperti pada CodeIgnier 4.
  • Secara default sudah ada .htaccess.
  • penggunaan autoload & namespace untuk semua library tambahan non composer yang di extend
  • Sudah di integrasikan library chriskacerguis/codeigniter-restserver untuk penanganan api

Aplikasi starter ini dibuat untuk yang memiliki keterbatasan resource server (Seperti masih menggunakan PHP 5);

Cara Install

  1. Clone repository ini.
  2. Jalankan terminal / cmd, arahkan ke folder root dan ketik composer install.
  3. Isi variabel yang terdapat pada file .env.

ci3-starter's People

Contributors

azharlihan avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

ci3-starter's Issues

BUG ci4 layouting

bug kontent tidak muncul ketika menggunakan layouting ci4:
app.php

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?= $this->renderSection('page_title') ?></title>
</head>
<body>
<header>
	ini header
</header>
<main>
	<?= $this->renderSection('content') ?>
</main>
<footer>
	ini footer
</footer>
</body>
</html>

app_blank.php

<?= $this->extend('layouts/app') ?>
<?= $this->section('page_title') ?>ini titlenya<?= $this->endSection() ?>

<?= $this->section('content') ?>

ini kontent

<?= $this->endSection() ?>

hasilnya menjadi:

ini header
ini footer

tapi berhasil bila extend berada di akhir

<?= $this->section('page_title') ?>ini titlenya<?= $this->endSection() ?>

<?= $this->section('content') ?>

ini kontent

<?= $this->endSection() ?>
<?= $this->extend('layouts/app') ?>

hasilnya:

ini header
ini kontent
ini footer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.