我想用php form builder class。但我不能跑这个班。 即时通讯使用如下(从example page):为什么php表单生成器类没有运行?
<?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设计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错误。他们是什么? – 2012-07-21 14:15:46
@皮卡我怎么看? – Birlikisgu 2012-07-21 14:38:06
我认为这是PHP不是Java。 – DrinkJavaCodeJava 2012-07-21 15:03:53