Zend框架您无权访问js / ckeditor / **

时间:2014-01-07 10:11:23

标签: javascript php .htaccess zend-framework ckeditor

我想将ckeditor与我的表单集成 我从http://ckeditor.com/download

下载ckeditor库

并遵循此处的指示

http://golearnphp.com/zend-framework-how-to-add-fckeditor-to-a-zend_form/

我在public / js / ckeditor文件夹中复制了ckeditor文件夹但是在尝试访问js文件时

You don't have permission to access /ZendTecAdmin/public/js/ckeditor/ckeditor.js

错误抛出。

我的.htaccess如下

RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The 
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to 
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size 
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d

请帮忙解决此问题。谢谢。

1 个答案:

答案 0 :(得分:1)

所以,我认为你需要授予文件夹的所有访问权限,

首先尝试一下,否则创建一个包含的文件夹名称并在create ckeditor文件夹中, 然后将所有文件放入该文件夹。

相应地将js路径更改为includes/ckeditor.

然后它会工作..