我在使用文本框技术使 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'
);
}
base 是 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(); ?>