thinkphp 中使用fckedit在线编辑工具,新手求指点
调用出现非法操作
function createEdit(){
vendor("fckedit.fckeditor");
//初始化
$ed = new FCKeditor('con');
$ed->BasePath = $sBasePath;
$ed->Create();
}
如果 createEdit 方法中没有写上面的创建fckedit的对象的代码话就没有神马问题, 类我是放到了Thinkphp 文件中的Vendor 文件夹里面,有神马问题,求解..
听说要修改 BasePath 属性, 我修改了一下
$this->BasePath = '/mygod/ThinPHP/Vendor/fckedit/' ;
function createEdit(){
vendor("fckedit.fckeditor");
//初始化
$ed = new FCKeditor('con');
$ed->BasePath = $sBasePath;
$ed->Create();
}
如果 createEdit 方法中没有写上面的创建fckedit的对象的代码话就没有神马问题, 类我是放到了Thinkphp 文件中的Vendor 文件夹里面,有神马问题,求解..
听说要修改 BasePath 属性, 我修改了一下
$this->BasePath = '/mygod/ThinPHP/Vendor/fckedit/' ;
作者: guatoujiangy 发布时间: 2011-06-22
烦了一个想了半天的错误, 就是 $this->BasePath = "/mygod/ThinPHP/Vendor/fckedit/"; 里面的 ThinPHP 少了一个 K , 应该 /mygod/ThinkPHP/Vendor/fckedit/ 就搞定了...
作者: guatoujiangy 发布时间: 2011-06-22