Introduction cakePHP 2.6.1
بِسْمِ اللهِ الرَّحْمنِ الرَّحِي
Sedikit Catatan dari cakePHP salah satu Framework PHP dari sekian banyak Framework yang beredar:
- Jika belum tau apa itu cakePHP silahkan keSini
- Jika belum ada salah satu dari banyak version cakePHP silahkan download di Situ
- Ok saatnya Lalok (dalam bahasa indonesia artinya: tidur)::
Sebelum lalok extract dulu pack cakePHP yang telah didownload, disini boku wa mengunakan cakePHP version 2.6.1 maka akan nampak jelas root directorynya seperti ini:
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
/path_to_document_root | |
/app | |
/lib | |
/plugins | |
/vendors | |
.htaccess | |
index.php | |
README |
Pada cakePHP vesion 3.0.0 akan sangat berbeda dari version 2.x.x ini, tapi mungkin dilain hari dan kesempatan boku wa akan mencoba lalok dengan version 3.0.0 menunggu release stable dulu .
Ok sekarang silahkan edit beberapa file :
1. Edit file core.php di Directory : app/Config/core.php
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 | |
//Cari ini : | |
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'); | |
Configure::write('Security.cipherSeed', '76859309657453542496749683645'); | |
//Ubah Menjadi : | |
Configure::write('Security.salt', 'pl345e-P45s_7h3*S@l7!'); | |
Configure::write('Security.cipherSeed', '7485712659625147843639846751'); | |
//Atau Kosongkan Seperti ini : | |
Configure::write('Security.salt', ''); | |
Configure::write('Security.cipherSeed', ''); |
Ubah default database sesuai database yang digunakan :
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 | |
public $default = array( | |
'datasource' => 'Database/Mysql', | |
'persistent' => false, | |
'host' => 'localhost', // Sesuai namahost yang digunakan | |
'login' => 'root', // Jika nama user adalah root | |
'password' => '', // Kosongkan jika database tidak memiliki password | |
'database' => 'database_name', // Sesuai database yang digunkan | |
'prefix' => '', | |
//'encoding' => 'utf8', | |
); |
Jika mau Instal DebugKit silahkan download disono , Kalau boku wa tidak mengunakanya.
Sekian sebuah cerita pengantar sebelum lalok lamak :) dan sampai jumpa di lain waktu dan lain cerita untuk pengantar sebelum lalok .