Saturday, February 10, 2018

Tutorial Singkat - PARSER Codeigniter



(Tingkat: Dasar - Menengah - Mahir)

Teman-teman semua yang baik hatinya, berikut ini saya coba untuk memberikan tutorial singkat mengenai Parser di Cedeigniter.

Berangkat dari keprihatinan saya, karena banyak yang mengalami kebingungan dalam menangani codeigniter, terutama yang projectnya sudah membesar, ada juga yg mendapat limpahan project dari developer sebelumnya yg sudah ruwet codenya. Semoga dengan tutorial singkat ini dapat memberi sedikit pencerahan, bagaimana menangani code di Codeigniter.

- Target utamanya adalah, membersihkan VIEW dari tag PHP (yg seperti sepageti campur aduk HTML dengan PHP)
- Mempermudah kolaborasi antara PHP Programmer dengan Web Designer (HTML, CSS, JAVASCRIPT)
- Semua file VIEW menggunakan extension *.html

1. Folder : application/config
 - autoload.php  (https://gist.github.com/jerry-maheswara-github/b41b0d99073e5c1fd38369aa8c8470fa)
 - config.php  (https://gist.github.com/jerry-maheswara-github/dedfa1ece2524cdef8f3da36a75f0d39)
 - database.php (https://gist.github.com/jerry-maheswara-github/943fbfc75154e2a4c77ba00c6062949e)

2. Folder : application/core
 - MY_Controller.php (https://gist.github.com/jerry-maheswara-github/a1c2a84cb916c084fbebca2093da2ba2)

3. Folder : application/controllers
 - Contoh.php (https://gist.github.com/jerry-maheswara-github/63905d07c20956529088caf326930de3)

4. Folder : application/views
 - index.html (https://gist.github.com/jerry-maheswara-github/87d2e714dacff3dd071e46e24ce18189)
 - header.html (https://gist.github.com/jerry-maheswara-github/90d2e7eb5858f5f34f2fc3ecf9129b1b)
 - footer.html (https://gist.github.com/jerry-maheswara-github/3d05d9051f83692daf9e6c9c7b182c85)
 - content.html (https://gist.github.com/jerry-maheswara-github/12d42b62a13dfdaf853840bac3cd04b2)
 - login.html (https://gist.github.com/jerry-maheswara-github/0bfe18881e75b5d90e78f0166f2cc530)
 - register.html (https://gist.github.com/jerry-maheswara-github/4f26a4a74b5596f36a2b3470079208e7)

5. Folder: application/helpers
 - opn_helper.php (https://gist.github.com/jerry-maheswara-github/50124b8401e232bc59890c47cab13aeb)

Untuk menyembunyikan /index.php/ di url:
- .htaccess  (https://gist.github.com/jerry-maheswara-github/6cf496bdaa2365f988bbf831746cffde)

SQL contoh:
- contoh.sql (https://gist.github.com/jerry-maheswara-github/f0cff72131857d8c1733da1e42cbcd2e)

Jika ada yang kurang jelas atau terjadi error, diperbolehkan Telegram saya  @jerrymaheswara .

GOOD LUCK ...!! Semoga bermanfaat...

Friday, March 31, 2017

Install PHP 71 Mac OSX Sierra


xcode-select --install
brew update
brew install httpd
brew install --with-httpd php71
apachectl start
which httpd
brew -v
php -v
apachectl -v

Saturday, January 21, 2017

Friday, September 30, 2016

Memory Consume: mplayer vs iTunes

mplayer vs iTunes

Very high different of memory consume on my macOS Siera to play mp3 music.
How is on yours?


Monday, September 26, 2016

Reset Launchpad Layout macOS


  1. Open the Terminal application and enter the following defaults write command string:

    defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
  2. Hit return and wait for the Dock to relaunch and Launchpad to reset

Gist Test

Gist adalah cara sederhana untuk berbagi snippet. Semua gist adalah repository git yang mendukung versioning, forking, dan dapat digunakan sebagai repository git.

Step 1: Create a Gist 

  1. Log in to Github 
  2. Click the Gist link at the top of the screen (or go to gist.github.com) 
  3. Fill out the file name (description is optional) 
  4. Enter your code 
  5. Click Create Public Gist 
  6. Optional: You can also click Add File at the bottom to split your code snippet up into several different files if you need to.

Step 2: Embed your Gist

Once you create your Gist, you will be presented with a confirmation page. Click the show embed link and copy/paste the script tag on to your website.

Sunday, September 25, 2016

Angular 2

Develop Across All Platforms 

Learn one way to build applications with Angular and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native mobile and native desktop.

Speed & Performance 

Achieve the maximum speed possible on the Web Platform today, and take it further, via Web Workers and server-side rendering. Angular puts you in control over scalability. Meet huge data requirements by building data models on RxJS, Immutable.js or another push-model.

Incredible Tooling

Build features quickly with simple, declarative templates. Extend the template language with your own components and use a wide array of existing components. Get immediate Angular-specific help and feedback with nearly every IDE and editor. All this comes together so you can focus on building amazing apps rather than trying to make the code work.

Loved by Millions

From prototype through global deployment, Angular delivers the productivity and scalable infrastructure that supports Google's largest applications.