【问题标题】:Zend framework fckeditor integrationZend 框架 fckeditor 集成
【发布时间】:2011-05-17 21:19:19
【问题描述】:

我已经完成了 fckeditor 与 zend 框架的集成。

使用自定义视图助手。

现在调用它的 fckeditor 类

我的问题是它(fckeditor 类)使用 iframe 来显示 fckeditor。这里 Zend 框架工作 url 不起作用。

由 eckeditor 类构建的 iframe 链接是:

/mysite/public/js/fckeditor/editor/fckeditor.html?InstanceName=page_text_details

由于 iframe 链接到 fckeditor.html,它给出以下错误

Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (js)' in /var/www/html/......

请帮助我如何删除它。

即使我已经使用 htacces 重写 URL

我的 htaccess 文件是:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

RewriteRule !\.(htm|html|txt|swf|js|ico|gif|jpg|png|css|php|xml|pdf|cab)$ index.php [NC,L]

【问题讨论】:

标签: php zend-framework url-rewriting


【解决方案1】:

我认为你需要在你的 htaccess 中添加一个 rewritebase 规则:

RewriteBase /mysite/public

您可能想要验证公用文件夹下是否存在“js”文件夹(及其 fckeditor 依赖项)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-17
    • 2011-06-28
    • 1970-01-01
    • 1970-01-01
    • 2011-05-26
    • 2011-12-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多