Langsung ke konten utama

Postingan

Menampilkan postingan dari September, 2020

Codeigniter HMVC PHP 7

  Perbaiki Error Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior Cara Memperbaikinya adalah sebagai berikut : buka folder application/third_party/MX/Router.php Berikutnya cari code function set_class , anda bisa menggunakan fasilitas pencarian di text editor yang anda gunakan, dengan menekan tombol CTRL + F, jika sudah ketemu, silahkan ubah codenya seperti dibawah ini code sebelumnya : public function set_class($class) { $suffix = $this->config->item('controller_suffix'); if (strpos($class, $suffix) === FALSE) { $class .= $suffix; } parent::set_class($class); } 1 2 3 4 5 6 7 8 9 public function set_class ( $ class ) { $ suffix = $ this -> config -> item ( 'controller_suffix' ) ; if ( strpos ( $ class , $ suffix ) === FALSE ) { $ class . = $ suffix ; } parent :: set_