Gunakan $this->namaVariabel=type data, dengan akses $this->namaVariabel, untuk membuatnya global dalam satu class, tempatkan deklarasi variabel dalam function _construct.
Read More →Error seperti dibawah ini merupakan error dimana path penyimpanan session bernilai NULL :
A PHP Error was encountered Severity: Warning Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php Line Number: 118
Solusinya, buka file config.php pada folder config, cari baris :
$config['sess_save_path'] = NULL;
Karena save path bernilai NULL, maka tidak dapat menyimpan session. Ganti line tersebut dengan :
$config['sess_save_path'] = sys_get_temp_dir();
Link solusi : https://forum.codeigniter.com/thread-65331.html
Read More →Pengalaman pribadi menamakan folder di view dengan url dari router dan kaitannya dengan controller.
Jika nama file di luar application bernama sama dengan url yang ada di router, maka sistem akan menampilkan folder tersebut instead controller dan view yang dimaksud.
Read More →Berfungsi sebagai rule yang memvalidasi inputan dari form.
set_rules
($field[, $label = ''[, $rules = ''[, $errors = array()]]])
Parameter dari set_rules ini adalah :
RewriteEngine On
RewriteBase /subdomain_name
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
if ($this->form_validation->run() == FALSE) { $this->load->view('myform'); } else { $this->load->view('formsuccess'); }Read More →
public function __construct() { parent::__construct(); // Your own constructor code }
Read More →RewriteEngine On RewriteBase /subdomain_name RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]
Read More →New! Here i found :
1. form_open replace an ordinary form tag html after declare 'form' on autoload->helper.
2. Also i found about form_validation and it has to be activated in autoload->libraries for helping also its need the edit at the controller.
The thing i notice about array name in folder controller will be a variable name in folder view/{class}
Read More →Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Read More →It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Read More →