0

プロジェクトのいくつかのモジュールで FCKEditor を使用しましたが、当時index.phpは URL で使用していましたが、削除index.phpすると FCKEditor がページから消え、エラーが表示されず、FCKEditor の場所が空白で表示されます。

$fckeditorConfig = array('instanceName' => 'fckcontent',
                         'BasePath' => base_url().'systemfiles/plugins/FCKeditor/', 
                         'ToolbarSet' => '', 
                         'Width' => '600', 
                         'Height' => '370',
                         'Value' => $this->input->post('fckcontent'));

$this->load->library('fckeditor', $fckeditorConfig);
4

1 に答える 1

1

最初のステップ: make .htaccess

#RewriteBase /
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L] 

ユーザーガイド: http://ellislab.com/codeigniter/user-guide/general/urls.html

2 番目のステップ: config\config.php を編集し、base_url() を設定します。

$config['base_url'] = '';

インデックスページを削除

$config['index_page'] = '';

3 番目のステップ: fckeditor を使用せず、ckeditor を使用する

ウィキを読む: https://github.com/EllisLab/CodeIgniter/wiki/CKEditor

于 2013-01-03T15:10:06.297 に答える