【发布时间】:2012-07-21 14:05:24
【问题描述】:
我想使用php form builder class。但我不能运行这个类。 我使用如下(来自example page):
<?php
session_start();
require_once 'PFBC/Form.php';
$form = new Form("webeditors", 650);
$form->addElement(new Element_Hidden("form", "webeditors"));
$form->addElement(new Element_TinyMCE("TinyMCE:", "TinyMCE"));
$form->addElement(new Element_CKEditor("CKEditor:", "CKEditor"));
$form->addElement(new Element_Button);
$form->render();
?>
以上代码的结果:
但必须如下:
PHP Designer 7 结果:
Javascript 错误控制台的输出:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/PFBC/Resources/tiny_mce/tiny_mce.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/PFBC/Resources/ckeditor/ckeditor.js
Uncaught ReferenceError: tinyMCE is not defined
问题出在哪里。看不懂。
同时,我正在使用 AppServ AppServ 2.5.10
有人说您需要下载 tinymce 和 ckeditor 并针对您的项目进行优化。但是 pfbc 已经具备了一切。
【问题讨论】:
-
您应该会在控制台中看到 JavaScript 错误。它们是什么?
-
我以为这是 PHP 而不是 Java。
-
@redelman431:JavaScript 不是 Java。根据您的浏览器,您可以看到不同的内容。在 Google Chrome 中,按 CTRL+SHIFT+J。
-
@Truth 好的。一切都已添加。
-
@Birlikisgu:在这里,您收到的错误很好地解释了这一切。这些文件不存在于它们应该存在的位置。
标签: php javascript oop tinymce ckeditor