我在使用文本框技术使kohana与kcfinder一起工作时遇到了问题,它以前是起作用的。现在我遇到了问题,它弹出的是php代码。
function openKCFinder(base) {
window.KCFinder = {
callBack: function(url) {
$(".kc-file").val(url);
$(".article-thumbnail").prop("src",url);
window.KCFinder = null;
}
};
window.open(base+'kcfinder/browse.php?type=files&dir=files/public', 'kcfinder_textbox',
'status=0, toolbar=0, location=0, menubar=0, directories=0, ' +
'resizable=1, scrollbars=0, width=400, height=400'
);
}基是kohana基路径
它给我看了这个
@copyright 2010, 2011 KCFinder Project * @license http:www.opensource.org/licenses/gpl-2.0.php GPLv2 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 * @link http://kcfinder.sunhater.com */ require "core/autoload.php"; $browser = new browser(); $browser->action(); ?>发布于 2014-04-15 07:13:55
不处理PHP脚本似乎是愚蠢的错误。
也许你指的是磁盘而不是web服务器?
base应该是http://...而不是c:\xaamp\...\
https://stackoverflow.com/questions/21699693
复制相似问题