我在我的项目的一些模块中使用FCKEditor,当时我在我的url中使用index.php
,但是当我删除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);
第一步:制作。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
第二步:编辑config'config.php并设置base_url()
$config['base_url'] = '';
并删除索引页
$config['index_page'] = '';
第三步:不要使用fckeditor,使用ckeditor
读维基:https://github.com/EllisLab/CodeIgniter/wiki/CKEditor