Last active
August 23, 2020 12:54
-
-
Save denihida1216/e9f0323ffc387f4b13e9033254729d84 to your computer and use it in GitHub Desktop.
ERROR NON-STRING NEEDLES WILL BE INTERPRETED AS STRINGS IN THE FUTURE. USE AN EXPLICIT CHR() CALL TO PRESERVE THE CURRENT BEHAVIOR
This file contains hidden or 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
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 : | |
1.buka folder application/third_party/MX/Router.php | |
2.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); | |
} | |
Ubah menjadi seperti berikut ini : | |
public function set_class($class) | |
{ | |
$suffix = $this->config->item('controller_suffix'); | |
if( $suffix && strpos($class, $suffix) === FALSE) //kode perubahan yang benar | |
{ | |
$class .= $suffix; | |
} | |
parent::set_class($class); | |
} | |
Lalu silahkan simpan perubahannya. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment