Skip to main content

integrasikan phpBB

October 29, 2008 by pemantik

pemantik's picture

Saya punya controller,
sebut saja bernama Coba_phpbb .

Permasalahannya coding tersebut butuh alamat root phpBB.
statement-nya :

require_once($phpbb_root_path.'common.php');

===============================================
Struktur direktori website saya :
-----------------------------------------
Controller yg di execute :
Root Website/system/application/controllers/coba_phpbb.php

file yang akan di-include :
Root Website/phpbb/ common.php

==============================================

Pertanyaan saya :
Variable $phpbb_root_path harus diisi apa ?
jika statement include sepeti ini :
require_once($phpbb_root_path .'common.php');

Saya sudah coba relative URL dengan cara mundur 3 langkah :
$phpbb_root_path = "../../../phpbb/";
Cara diatas tetap gak bisa.

Mohon bantuannya supaya file common.php tersebut dapat di-include oleh controller coba_phpbb buatan saya

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

misahin modules

December 28, 2008 by girista, 3 years 5 weeks ago
Comment: 184

girista's picture

sekedar saran.. bagaimana kalo dibuat seperti ini
root
-codeigniter
--modules
----phpbb
-system
----application
etc

nanti manggil nya tinggal
$this->load->helper('url');//atau bisa diload seacara otomatis di /application/config/autoload.php
$phpbb_root_path = base_url()."modules/phpbb";
require_once($phpbb_root_path.'common.php');

Premium Drupal Themes by Adaptivethemes