Langsung ke konten utama

Postingan

Menampilkan postingan dari 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_

Codeigniter 3.1.11 HMVC

 Edit file application/third_party/MX/Router.php public function set_class ( $ class ) { $ suffix = $ this -> config -> item ( 'controller_suffix' ) ; if ( strpos ( $ class , $ suffix ) === FALSE ) { $ class . = $ suffix ; } parent :: set_class ( $ class ) ; }   menjadi:   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 ) ; }   Dan file application/third_party/MX/Loader.php   public function view ( $ view , $ vars = array ( ) , $ return = FALSE ) { list ( $ path , $ _view ) = Modules :: find ( $ view , $ this -> _module , 'views/' ) ;   if ( $ path != FALSE ) { $ this -> _ci_view_paths = array ( $ path = > TRUE ) + $ this -> _ci_vi

Menghubungkan GitHub dengan Visual Studio Code

Langkah awal instal Visual Studio Code dan Git (jika belum terinstal) Buat project baru atau buka project yang akan di hubungkan ke GitHub tanpa membuat Readme.md Masuk ke menu Source Control pada VS Code, Commit Selanjutnya run di Git CMD dengan perintah:  git config --global user.email "email@email.anda"  git config --global user.name "namaanda" echo "# KlinikReactJS" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/agungphe/KlinikReactJS.git git push -u origin master     NB: email GitHub harus disetting public untuk mengijinkan aplikasi lain push project