Swarakalibata Versi CIDibuat
Login Terakhir
2 Tahun lalu,
Telah Dilihat 2122 Kali
| |
Sultan Account |
|
|
Simri Nubatonis
Mengatakan :
Sultan Account
Pak Robby,
Kalo mau include-kan file di swarakalibata_ci gmana caranya? Jadi saat module=home baru include
Kalo di versi sebelumnya, seperti ini:
if ($_GET['module']=='home'){
include"namafile.php";
}
Nah kalo di Swarakalibata_ci gmana caranya?
Mohon infonya pak Robby
Makasih |
|
| PHPMU.COM Support commented on 17 Mar 2017 14:43:16 Sultan Account |
|
|
|
Assalam, jadi seperti ini mas :
if ($this->uri->segment(3)=='main' OR $this->uri->segment(3)==''){
include"namafile.php";
} |
|
| Simri Nubatonis commented on 17 Mar 2017 17:10:08 Sultan Account |
|
|
|
Thanks pak Robby, Saya coba pak Robby Yang berhasil itu cuma MAIN MENU yang bagian: - NASIONAL dan INTERNASIONAL Selain dari itu ( KOLEKSI VIDEO, BERITA FOTO, DOWNLOAD AREA, SEMUA AGENDA, KONSULTASI, KONTRIBUTOR, LAINNYA ) masih ter-include Maaf, saya banyak nanya nih pak Robby Thanks |
|
| Simri Nubatonis commented on 17 Mar 2017 17:32:28 Sultan Account |
|
|
|
Maaf Pak Robby, Sudah nemu, saya ganti ini: if ($this->uri->segment(3)=='main' OR $this->uri->segment(3)=='') jadi gini: if ($this->uri->segment(1)=='main' OR $this->uri->segment(1)=='') Makasih pak Robby |
|
| PHPMU.COM Support commented on 17 Mar 2017 17:34:16 Sultan Account |
|
|
|
Oo iya lupa saya, segment(1) ya, hehee |
|